Help Filtering Bracketed Expressions

Tips on writing regular expressions for searching the post list

Moderators: Quade, dexter

Help Filtering Bracketed Expressions

Postby Jorge » Mon Feb 04, 2002 2:10 pm

Given the use of [brackets] in RegEx, how does one go about filtering words that use brackets e.g. [test]

I've tried [[]test[]] that doesn't seem to work.

Suggestions woudld be appreciated.
Jorge
 

RE: Help Filtering Bracketed Expressions

Postby dexter » Mon Feb 04, 2002 2:38 pm

Use the backslash to escape the character. For example, to match [test] use \[test\].
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 10 guests