pattern matching - Regex conditional match -


  one ?? ¢ ~! @Pages to work as a placeholder of 1-3? ¢ Asterisks are allowed in 2-5 positions? Â ¢ should be a status alphabet (except for ~! @) A ?? ¢ Should not accept any letter numbers ¢? ¢ In addition to the exceptions described above, no specific characters are allowed   

This means that if my first word is ia alphabet then 2-5 may be alpha or * (2- 5 is not compulsory but if we enter it should be alpha or *)

But if we are using then 2-3 should be the situation! @

Now I

  ^ [a-zA-Z ~] [a-zA-Z *] {0,4} [a-zA-Z] * $ ", Pattern. CASE_INSENSITIVE)    

For the string that starts with ~! @ :

  ^ ( ? I? (?: [Az] [az *] {0,4} [az] * | ~! @ [Az *] {0} [az] *) $   < / Div> 

Comments

Popular posts from this blog

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -