How can I catch an arbitrary string between defined words using regular expressions?

Posted by macropas on Stack Overflow See other posts from Stack Overflow or by macropas
Published on 2010-05-06T06:37:17Z Indexed on 2010/05/06 6:38 UTC
Read the original article Hit count: 276

Filed under:
|
|
|

How can I catch an arbitrary string between defined words using regular expressions in .Net, e.g. @”…DEFINED_WORD1 some_arbitrary_string DEFINED_WORD2…”? Unfortunately my experiments with “(?=)” and other patterns are unsuccessful :(

© Stack Overflow or respective owner

Related posts about regular-expressions

Related posts about regex