Thursday, August 1, 2013

match ANYTHING using regular expression


Hi,

If you looking a way to match anything in .net using regular expression, the tool you need is:

(?s)

This mean anything including newline as well.

Here is how to use it:
(?s).*    -- comment: Replace angle brackets and mystring word with your word.

HTH.

No comments: