I have a few lines that would look like this:
text (255) varchar (64) ...
I want to find out the number between (and) and store this in a string. That is, obviously, keep these lengths in lines. I have everything that has been figured out, with the exception of regular expression parsing. I find it hard to understand the regex pattern.
How to do it?
Sample code will look like this:
Matcher m = Pattern.compile("<I CANT FIGURE OUT WHAT COMES HERE>").matcher("text (255)");
In addition, I would like to know if there is a cheat sheet for regular analysis of regular expressions, from where you can directly select regular expression patterns
source share