0 Replies Latest reply on Aug 31, 2017 10:11 PM by 1591350

    ADF Regular Expression Validation

    1591350

      Hi,

       

      I already have a regular expression within a JSFF page to check if 16 digit card number begins with 4 or 5. This is achieved with the following fragment below.

       

      <af:validateRegExp pattern="(4|5)[0-9]{15}" .....

       

      I want to extend this check by adding if the input card number begins with 97, 35 or 65.

       

      I have already tried the following pattern which did not work; "((4|5)[0-9]{15}|^9[7][0-9]{15}|^3[5][0-9]{15}|^6[5][0-9]{15}$)"

       

      How can I achieve this please?

       

      Thanks in advance.