Home > Enterprise >  how can i solve the problem problem with this regex?
how can i solve the problem problem with this regex?

Time:11-25

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.

Also, the [A-z] is enter image description here

  • Related