troubleshooting Question

C# Regular Expression Help

Avatar of zattz
zattz asked on
C#Regular Expressions
7 Comments2 Solutions459 ViewsLast Modified:
Hi

I am having trouble with a regular expression.

The expression is:
<description>.*?</description>

The content I am running the expression on is:
<description>hello</description>

that works fine, but if I put a line break in the middle of my content it does not work. eg:

<description>he
llo</description>

It does not produce any matches on the above content. How can I get my expression to work even with line breaks in the content.

Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 2 Answers and 7 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros