Activity for user53100
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #284310 | Initial revision | — | over 3 years ago |
Answer | — |
A: Substituting text in a sed like manner but with a richer format Perl 5's `/x` modifier ignores whitespace in the regex, but it doesn't seem to ignore whitespace in the replacement (and I don't know enough perl to fix this). However, if you want to match whitespace, it will have to be escaped. See the perlre§/x and /xx. ``` perl -pe ' s/ \$to\ =\ "... (more) |
— | over 3 years ago |