troubleshooting Question

regular expression problem

Avatar of andieje
andieje asked on
Visual Basic.NET
9 Comments1 Solution222 ViewsLast Modified:

I am unsure how to write a regular expression that I need.

I have to analyse strings of about 50 characters. I need to find those strings that contain a certain set of characters, for example, "XYZ" but not strings that contain "xyz" and another set of characters "abc". The "abc" part if it is present in the string is always before the "xyz". These character strings always have the same format "xyz" and "abc"

I did not know how to do the not "abc" part. Here was my idea:


Thanks for your help
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 9 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 1 Answer and 9 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