The ".*+?" matches non greedily(Because of the ?), so the next "\d+" matches the first digit(s) it encounters, which is "2".Beginning is <I have >,number is <2>.
This means that the first expression (.*+?) gets everything before the "2".
Syntactic sugar causes cancer of the semicolon. --Alan Perlis
In reply to Re^3: What is the output for this ??
by NetWallah
in thread What is the output for this ??
by sreenath
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |