Regex to match exact substring java -
i have string below
testfilter('value') , loadtestfilter('value1') , userfilter(value2) or testfilter('value3')
i want extract testfilter along brackets above string. want regex match these 2 substrings
testfilter('value') testfilter('value3')
i have tried below regex
.*testfilter\\((.*?)\\).*
it working matching loadtestfilter in string
how match testfilter.
try this:
testfilter\\((.*?)\\).*
without first (.*)
Comments
Post a Comment