Here is example text…
ss(12a)eee
ss(121112322)eeede223
I would like to extract “121112322” … … I can extract the “(121112322)”, using this
\(\d*\)
But I would like to exclude the “()”, and the text must inside the (), how can I do so? Thank you.
Regular expressions provide ways to capture buffers. Check this document on how to capture buffers with Perl, which is pretty universal.
Basically, you need to wrap up the piece of regex you want to capture in unescaped parenthesis:
By convention, in buffer 0 you’ll have the whole string, and in buffer 1 you’ll have the first captured buffer.