I have the same problem as in this link
but with multiple patterns. My regex is like:
Pattern word = Pattern.compile("([\\w]+ [\\d]+)|([\\d]+ suit
(?=(\b[\w]+ [\d]+))|(?=(\b[\d]+ suite))|(?=(\b[\w]+ road))
Try this.See demo.Grab the captures.
https://regex101.com/r/dU7oN5/16
Use positive lookahead to avoid string being consumed.
positive lookahead