I’m not really good at regular expressions so I need some help here.
I have a long string of garbled characters (special and alpha numeric); however somewhere in the middle I have a chunk that I’m interested in where it has two sets of words separated by a forward slash like:
$234207YELLOW/GREEN$M4/ZlAVadvae1bUAoIfaEbEAZ4HdBHr2ftv+3tIo+yw==
And I’m interested in the YELLOW/GREEN part of the whole thing; and the part that I’m interested in can be anywhere in the string so I can’t rely on an index 🙁
Can you help me find the regex that I can use in my Java code to get this?
Thanks.
Depending on what you mean by “word”: