Forum: Algorithmen, Datenstrukturen und Klassendesign
Delphi
by SProske,
17. Apr 2015
(?<!XXX) is a negative lookbehind, it checks, that there is nothing fitting XXX directly before the captured string.
In your case it checks, that there is no ".", "," or any number.
(?!XXX) is a negative lookahead, it checks, that there is nothing fitting XXX directly behind the captured string.
In your case it checks, that there is not any amount (including 0) of numbers followed by "." or...
Forum: Algorithmen, Datenstrukturen und Klassendesign
Delphi
by SProske,
16. Apr 2015
You could use the following RegEx for a positive check:
(?<!\.|\,|\d)(?\d+)(?!\d*\d*)
https://regex101.com/r/yU2vY2/1