I’m using the java class Pattern to match the strings in a text that start with a specific string, let’s say abc, that has any text (containing any character) and that stop at the beginning of another different specified string, let’s say def. How would you write this?
Share
Unless your problem is more complicated than you’ve explained:
"abc.*def"