<pre><pre>Required Regular expression Validation Start two Fixed character and then after Numeric fixed Character. Example: if character start with AB then allow 20 character - Length : additional 20 numbers. - Example : ABcD3456789012345678cc If "AB" then 20 characters. AB+20 AlphaNumeric if character start with XY then allow 14 character - Length : additional 14 numbers. - Example : XY0123456789012 If "XY" then 14 numbers. XY+12 numbers
(?:AB[\da-zA-Z]{20}|XY\d{14})$ i need in this expression add one condition if string not start with AB or XY then it's allow 0 to 100 character.
Regex Validation Start two Fixed character and then after Numeric fixed Character
^(AB\d{20})|(XY\d{14})$
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)