Regular expressions

There is no such thing as a stupid question here as long as it pertains to using NewsBin. Newbies feel free to get help getting started or asking questions that may be obvious. Regular users are asked to be gentle. :-)

Moderators: Quade, dexter

Regular expressions

Postby dane » Tue Apr 28, 2020 11:00 am

Good Morning - regex confuses the bejeesus out of me. I want to be able to search for Aston Martin without seeing headers for Aston Springs or Aston Martinez. What's the secret of searching for specific literal strings?

Thanks,
DaDane
dane
Seasoned User
Seasoned User
 
Posts: 193
Joined: Sat Mar 26, 2005 7:47 pm

Registered Newsbin User since: 03/25/05

Re: Regular expressions

Postby Quade » Tue Apr 28, 2020 1:31 pm

If you want the two words together with the space, you can use

"aston\smartin"

The "\s" means "space".
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44867
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

Re: Regular expressions

Postby dane » Tue Apr 28, 2020 3:10 pm

Hi Quade - thanks for the reply. Sorry to be a pain but I'm still a bit confounded.

If I enter "aston\smartin" (with or without "") I get an error that says no results
If I just enter aston martin - 304 headers; "aston martin" 272

If after one of those, I replace the space with \s (aston\smartin - with or w/o "") and don't hit enter - 125 headers.
That's the closest I get to what I want (still get aston martinez), but it take 2 steps. Is that how it should be?

Thanks,
DaDane
dane
Seasoned User
Seasoned User
 
Posts: 193
Joined: Sat Mar 26, 2005 7:47 pm

Registered Newsbin User since: 03/25/05


Return to Newbie Forum

Who is online

Users browsing this forum: No registered users and 2 guests

cron