08-15-2013, 08:59 AM
Hi All,
Please help me understand below Regular Expressions :
1. "[abc][1-4]*" -- How does this matches "a1234344"? , is it so that this string is considered as "a12-34-34-4" ? If yes how a group of characters , i.e. 34 considered together for matching ?
2. "[123]+" -- How does this matches "12" and "23" ?
3. "\d{2} -- will this match to "00 to 99" or "01 to 99", why ?
Please help me understand below Regular Expressions :
1. "[abc][1-4]*" -- How does this matches "a1234344"? , is it so that this string is considered as "a12-34-34-4" ? If yes how a group of characters , i.e. 34 considered together for matching ?
2. "[123]+" -- How does this matches "12" and "23" ?
3. "\d{2} -- will this match to "00 to 99" or "01 to 99", why ?