Plankton has asked for the wisdom of the Perl Monks concerning the following question:
Dear Wise Monks,
I am processing a text file that lines like this ...
... I want to change the fraction character to ½ so I tried this in my script ...The use of the Porter and Ale is more prevalent in England. In the United States ½ Old and ½ New Ale is usually used when this drink is called for, unless otherwise specified.
... by simply cut-n-paste the ½ into my script, but that doesn't seem to work. What should I be doing here?$origtext =~ s/½/\½/g;
Thanks
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How do I regex for characters like ¾, ¼ ?
by GrandFather (Saint) on Sep 10, 2007 at 02:52 UTC | |
by Plankton (Vicar) on Sep 10, 2007 at 03:35 UTC | |
by Anonymous Monk on Sep 10, 2007 at 04:19 UTC | |
by Plankton (Vicar) on Sep 10, 2007 at 04:26 UTC | |
by GrandFather (Saint) on Sep 10, 2007 at 04:10 UTC | |
Re: How do I regex for characters like ¾, ¼ ?
by moritz (Cardinal) on Sep 10, 2007 at 05:51 UTC | |
Re: How do I regex for characters like ¾, ¼ ?
by Anonymous Monk on Sep 10, 2007 at 04:10 UTC | |
Re: How do I regex for characters like ¾, ¼ ?
by goibhniu (Hermit) on Sep 10, 2007 at 15:46 UTC |