|
What is a regular expression?
| [Previous] [Main] [Next] |
| The regular expression `foo' matches any string containing `foo'. So if you wanted to find a file with the letters 'fred' in it the regular expression would simply be 'fred'.
|
|
|
| To find a file that begins with 'Dave' or 'Sherry' followed at some point by 'Document' or 'Documents' followed at some point by a number and has a '.doc' extension the expression would be: '^(Dave|Sherry).*Documents?.*[0-9]+.*\.doc$'
|
|
|
| This expression would find:
|
| · | DavesPrivDocuments_23.doc
|
| · | Sherry Documents Num5a.doc
|
| · | etc.
|
|
|