Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re^2: Using Look-ahead and Look-behindby Roy Johnson (Monsignor) |
on Nov 12, 2007 at 17:54 UTC ( [id://650323]=note: print w/replies, xml ) | Need Help?? |
Generally, the decision about using ?: is not about whether it's necessary, but that capturing whatever you're grouping isn't necessary. The ?: modifier makes parentheses not capture, which is somewhat more efficient and might make the task of counting left parentheses less onerous.
By the way, it's not a lookaround feature. Caution: Contents may have been coded under pressure.
In Section
Tutorials
|
|