How to find specific text in a string?
1 ビュー (過去 30 日間)
I have the following text:
Is there an easy way for search for all the locations with "(" - number - ")".
I mean, all the places where there is a number between parenthesis.
I've try to use regexp but it was too complicate for me to understand how exactly it should be written.
Cris LaPierre 2022 年 4 月 4 日
I'm sure there is a regexp way to do this, but I find it easier to use pattern with its supporting functions. Here's how I would do it.
txt = "abs(3).def(5).hhh(11)";
pat = lookBehindBoundary("(") + digitsPattern + lookAheadBoundary(")");