You can do this in Perl/Java ( example )
Is it possible to do this in c#?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can do that in C#. It’s called a positive lookahead assertion. See this table for a comparison of the capabilities of various regular expression engines (search for lookaround on that page).
On a related note, C# also supports variable width lookbehind assertions – something that most other engines do not support.