Basis expression

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Basis expression

Postby AreLefty » Thu May 02, 2002 4:17 pm

Still just a little confuse about filters.

What about filters in R4.0 filename spaces and numbers such as:


keep it simple 02.avi
keep it simple 03.avi


How do you account for the spaces and number when setting up a filter?
AreLefty
 

RE: Basis expression

Postby dexter » Thu May 02, 2002 4:52 pm

You can bracket spaces, or put the entire string in parenthesis. So you could use either

keep[ ]it[ ]simple[ ][0-9][0-9]\.avi

or

(keep it simple )[0-9][0-9]\.avi
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97

RE: Basis expression

Postby Quade » Thu May 02, 2002 11:46 pm

The first yes. Don't know about the second. Did you test this?
User avatar
Quade
Eternal n00b
Eternal n00b
 
Posts: 44999
Joined: Sat May 19, 2001 12:41 am
Location: Virginia, US

Registered Newsbin User since: 10/24/97

RE: Basis expression

Postby dexter » Sat May 04, 2002 11:51 pm

Yep, it works.
User avatar
dexter
Site Admin
Site Admin
 
Posts: 9514
Joined: Fri May 18, 2001 3:50 pm
Location: Northern Virginia, US

Registered Newsbin User since: 10/24/97


Return to Regular Expressions

Who is online

Users browsing this forum: No registered users and 1 guest