sidwelle
asked on
regx exclude pattern
I need to have a 1 line expression that excludes patterns that include a specific pattern or substring.
Not sure where to start:
I have the following pattern "*.Done", and I want an expression that excepts all patterns except this one.
Thanks
Not sure where to start:
I have the following pattern "*.Done", and I want an expression that excepts all patterns except this one.
Thanks
This works for me... but negative operators can vary by regex interpreter
/^((?!\*\.Done)[\s\S])*$/gm
ASKER
ASKER
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I added the 'i' to be case insensitive.
Thanks for answering
Thanks for answering
ASKER