I have the same problem as in this link
but with multiple patterns. My regex is like:
Pattern word = Pattern.compile("([\w]+ [\d]+)|([\d]+ suite)|([\w]+ road)");
If my sample text is,
XYZ Road 123 Suite
My desire output is,
XYZ Road 123
123 suite
But am getting
XYZ Road 123
only.
Thanks in advance!