How to use Java Regex Expression in condition.

Not applicable

Please explain how to use Java Regex in condition with example.

Suppose we use "^[a-zA-Z0-9]*$" for alphanumeric regex validation in java. How we will use it sing JavaRegex operator in apigee condition. Is there any other specific way to give??

0 2 1,603
2 REPLIES 2

Dear @Vipul Agarwal ,

Welcome to Apigee Community. Please find similar question answered here.

Cheers,

Anil Sagar

I am using

<Name>FC-InvalidScope</Name>
<Condition>(request.queryparam.scope JavaRegex "\W") 
or (request.queryparam.scope JavaRegex "(\W)")</Condition></Step>

But it doesn't work even though there are non word characters in the request as what I could see in the trace.

I already posted a question here