I may have strings that will look something like this:
ABC
DEF-123
456
789GH-IJK-0
And Im trying to figure out a Regex that will group it on strings and numbers, like this:
(ABC)
(DEF-)(123)
(456)
(789)(GH-IJK-)(0)
My first thought was to use (\D*|\d*) as pattern, but the numbers isnt returned
How about using inner non-capturing sub groups…
Example output from perl…