If I have a line that contains this: ProdBC02TradeServer24
and I want to break it up into BC02 and 24, how would I go about doing that.
Right now,
I am doing this: Prod(BC\\d+)\\S+(\\d+)
But that only breaks it up into:
BC02 and 4. I need 24, not just the 4.
Can someone show me what I am doing wrong
The problem is that the regex picks the shortest match, eg the match with only 1 digit. I suggest adding the next character, whether that be space, end of line, eof, or other.