The latter two are easy to extend if there are multiple captures. (The middle one is my favourite.)map { /^online.*svc:(.*?):/; $1 // () } map { /^online.*svc:(.*?):/ and $1 or () } map { /^online.*svc:(.*?):/ ? $1 : () }
In reply to Re^3: Capturing regex from map
by Anonymous Monk
in thread Capturing regex from map
by trippledubs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |