Проверка регулярных выражений начинается с двух фиксированных символов а затем после числового фиксированного символа
<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