Welcome! Log In Create A New Profile

Advanced

Re: How to do substitions (like perl s/// operator) in rewrites?

January 11, 2010 03:28AM
Thank you for your responses!

I think Maxim is right and embedded Perl is the way to go.

Bernd's idea would work if there was an easy way to generate a map file with hyphens from the source file.
However the source file has 200k+ entries that look like this:
[code]
thisisthebestnewsever 123456;
expertsadvicetoeatmorefish 123457;
...
[/code]
I can not think of an automated way to convert this to:
[code]
this-is-the-best-news-ever 123456;
thisisthebestnewsever 123456;
experts-advice-to-eat-more-fish 123457;
expertsadvicetoeatmorefish 123457;
...
[/code]
Knowing that the map module is case-insensitive may safe me from confusion in the future.

Thanks again,
Bart
Subject Author Posted

How to do substitions (like perl s/// operator) in rewrites?

bartschipper January 10, 2010 09:08AM

Re: How to do substitions (like perl s/// operator) in rewrites?

Maxim Dounin January 10, 2010 09:32AM

Re: How to do substitions (like perl s/// operator) in rewrites?

dobe January 10, 2010 12:09PM

Re: How to do substitions (like perl s/// operator) in rewrites?

bartschipper January 11, 2010 03:28AM

Re: How to do substitions (like perl s/// operator) in rewrites?

bartschipper January 11, 2010 04:18PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 140
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready