I am struggling with the following issue: say there's a regex 1 and there's regex 2 which should match everything the regex 1 does not.
Let's have the regex 1:
/\$\d+/
(i.e. the dollar sign followed by any amount of digits.
Having a string like foo$12___bar___$34wilma buzz
it detects $12
and $34
.
How does the regex 2 should look in order to match the remained parts of the aforementioned string, i.e. foo
, ___bar___
and wilma buzz
? In other words it should pick up all the "remained" chunks of the source string.