The goal is to get all the numbers from a text besides those which are either followed by or are trailing specific words/characters (including ignoring date). What I am struggling with is negative lookbehind
For example: 4.5 $55 1,200 wordA 3 sometext 2 wordB sometext 4.3charA sometext charB21.6 sometext 11/10/22
In the sample numbers 3, 2, 4.3, 21.6 and the date 11/10/22 would be ignored
My attempt https://regex101.com/r/PQvtOl/1/
(\d*\b[\.,]?\d+)(?!\d*? (?:wordB))(?!\d*?(?:charA))((?!\b[charB/])(?!\d+))
Any help would be greatly appreciated!