Either escape it as s/(\d+)C/($1*9\/5)+32 . "F"/ge; or change the delimiter so there isn't a conflict like s|(\d+)C|($1*9/5)+32 . "F"|ge;. perlre has more examples of this.
In reply to Re: regexp - how to embed a "/" within the executable part of the regexp when using /e
by diotalevi
in thread regexp - how to embed a "/" within the executable part of the regexp when using /e
by princepawn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |