cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Help me with Regex..

ajaygogo75
Newcomer

Hi ,

Please find below the details:-

"/integration.catalyst.com/ws/PharmacyService/locatePharmacyV2"

"integration.catalystrx.com/ws/MemberService/findMember"

I want to capture string after ws/ only

Please provide me the regex

Also

"/Services/MemberService.serviceagent//getMemberAllCAGsNC"

in this after //

Regards,

Ajay


5 REPLIES 5

ajaygogo75
Newcomer

Snapshot attached

jose-antonio_ra
Inactive

Hello Ajay,

try with this:

([^ \ / \ /] +) \ /? $

You can always do tests here https://regex101.com/

Cheers

José A


avinash_podise1
Newcomer

try this

.*\/ws\/(.*)


avinash_podise1
Newcomer

and for

/Services/MemberService.serviceagent//getMemberAllCAGsNC"


try this

.*\/\/(.+)


BabarQayyum
Leader

Hello @Ajay G.

You can try the below one to find the group.

(\/ws\D.*)

"/integration.catalyst.com/ws/PharmacyService/locatePharmacyV2"
"integration.catalystrx.com/ws/MemberService/findMember"

(\/\/.*)

"/Services/MemberService.serviceagent//getMemberAllCAGsNC"

Regards,

Babar