Regular Expression

perl Australia
  • 16 years ago

    Hi.


    A simple regular expression question:


    How do I search for a string that contatins one word anddoesn't another word.


    For example, I want to find all strings with "test" in them, but not "other".


    So it would match "test other", "test something other" and "there test and other"


    but it would not match "test", "other", "something".


    Thanks.

Post a reply

No one has replied yet! Why not be the first?

Sign in or Join us (it's free).

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Every language has an optimization operator. In C++ that operator is ‘//’”