I have a question about Java regular expression. How to find a regular expression pattern without include it in the result?
For example if the string is "1ab 2cd 3se 4ab" and I want to get the number that is followed by ab without including ab in the result. The final result is "1 4"