Back to Agent Ransack Home page

 

| (Expression OR)
[Previous] [Main] [Next]


Use the | when either one expression or another will do.

For example:

Both the expressions '(Dave|David) Vest' and 'Dav(e|id) Vest' will match 'Dave Vest' and 'David Vest'  
 
'(1|2|3) (person|people)' will match '1 person' and '2 people' and '3 people' but will not match '4 people' (it will also match '2 person' etc.). Note: this expression could have also been expressed using a character list.