Skip to main content
Prasad U 님이 #MuleSoft API Manager에 질문했습니다

How to write regex for resource in Client ID enforcement policy for a resource like below.

 

emp/{empid}/salary

답변 2개
  1. 2월 24일 오후 12:57

    Ans:          ^/emp/[^/]+/salary$ 

     

    here detailed explanation on each special regular expression: 

     

    ^ = Start of path 

     

    /emp/ = Fixed part 

     

    [^/]+ = Matches any value for empid (anything except /) 

     

    /salary = Fixed part 

     

    $ = End of path

0/9000