Reputation: 38529
I want to check the following with regular expression
{Today,Format}
Today - will be remains as it is. In the place of Format, we can allow the digits from 0 to 12.
for example: we have to allow
{Today,0}
{Today,1}
{Today,2}
...
{Today,12}
and also have to allow
{Today,}
{Today,Format}
Please help me and also refer me to some site to develop my regular expression skills.
Upvotes: 0
Views: 10216
Reputation: 3351
You might also find this list of regular expression software quite useful. Rubular is my favorite.
Upvotes: 0
Reputation: 625007
\{Today,(\d|1[012]|Format)?\}
Meaning:
As for resources I can recommend this site on regular expressions and the book Mastering Regular Expressions.
Upvotes: 18