I need a regex pattern (must be a single pattern) to match any text that contains a number, excluding a specific literal (i.e. “SomeText1”).
I have the match any text containing a number part:
^.*[0-9]+.*$
But am having a problem excluding a specific literal.
Update: This is for .NET Regex.
Thanks in advance.
As a verbose regex:
If your regex flavor doesn’t support those: