Page 1 of 1

Regular expressions

Posted: Fri Apr 01, 2005 4:56 am
by Anton V. Dyshlyuk
:? Hello! Could anybody tell me how to search the following text fragment: "go * * walk" where * means just a word of any length.

I guess it's easy but I got a bit puzzled at regular expression syntax.
Thanks!

Posted: Fri Apr 01, 2005 8:54 am
by Abacre
Hi Anton,

In your case you may use, for example,
\w
it's alphanumeric char.

So the final expression for you will be:

Search for:
go \w+ \w+ walk

Where \w+ means one or more alphanumeric chars.

Read more about regular expressions syntax:
http://www.abacre.com/afr/manual/regexpsyntax.htm

Posted: Sat Apr 02, 2005 6:37 am
by Anton V. Dyshlyuk
Many thanks!!! That's pretty easy when you know the answer!
I should have guessed myself. :D