s/(\d+)C/($1*9/5)+32 . "F"/ge;
I like [] for matches, and {} for code. Maybe the Apocalypses inspired me...
s[ (\d+) C ] { $1 * 9 / 5 + 32 . 'F' }gex;
- Yes, I reinvent wheels.
- Spam: Visit eurotraQ.
In reply to Re: regexp - how to embed a "/" within the executable part of the regexp when using /e
by Juerd
in thread regexp - how to embed a "/" within the executable part of the regexp when using /e
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |