mercredi 8 avril 2015

Generate a regex for the following pattern

Build a regex to match "${0} and ${1} or ${2}"


Condition


Must have $ followed by {} braces with only digits 0-9 Apart from ${} pattern there can be a space and other two words OR or AND words


Have tried the following \$\{\d*\} | OR | AND | \s+


Aucun commentaire:

Enregistrer un commentaire