Regular expressions

General discussions about Advanced Find and Replace
Post Reply
Anton V. Dyshlyuk
Posts: 2
Joined: Fri Apr 01, 2005 4:44 am

Regular expressions

Post by Anton V. Dyshlyuk » Fri Apr 01, 2005 4:56 am

:? 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!

Abacre
Site Admin
Posts: 1201
Joined: Mon Jan 31, 2005 5:32 pm
Contact:

Post by Abacre » Fri Apr 01, 2005 8:54 am

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
Kind regards,
Abacre Limited
http://www.abacre.com
support@abacre.com

Anton V. Dyshlyuk
Posts: 2
Joined: Fri Apr 01, 2005 4:44 am

Post by Anton V. Dyshlyuk » Sat Apr 02, 2005 6:37 am

Many thanks!!! That's pretty easy when you know the answer!
I should have guessed myself. :D

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests