what is the problem with this regex?
PUBLIC_API_REQUEST:http://localhost:6501/public/api/v1/getBranches/client/faraApp {some text
here} PUBLIC_API_RESPONSE:{some text here}
myregex :PUBLIC_API_REQUEST:(?<address>(?:[A-z\:\-\0-9\/] )) (?<requestBody>[^}]*)
PUBLIC_API_RESPONSE:(?<response>[^}]*)
CodePudding user response:
You need to match and consume the text that you are not going to capture, like {
or {
chars.