troubleshooting Question

Regex - Find any string that is surrounded by "<" and ">"

Avatar of Curto123
Curto123 asked on
Regular ExpressionsC#
6 Comments1 Solution457 ViewsLast Modified:
Is there a simple regular expression that will find any string contained with < and >?  I am working through textual data and I am looking for certain patterns.  For instance, I have
"<Employee Date Of Birth>", this I would want to find.

I have some examples that mostly work, such as:
"<([,'/ A-Za-z0-9\-]+)>"
but this fails to find "<(date of birth)>" because it doesn't find the parentheses.  I could research and figure out how to include the parenetheses, but then I will stumble upon another character it won't find, and so on, and so on...

Seems to be there is a simple solution that I cannot find in any of the examples.
Join our community to see this answer!
Unlock 1 Answer and 6 Comments.
Start Free Trial
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 1 Answer and 6 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