kettle has asked for the wisdom of the Perl Monks concerning the following question:
#!/usr/bin/perl -w use warnings; use strict; binmode(STDIN,":bytes"); binmode(STDOUT,":bytes"); while(<>){ chomp; s/\302\240//g; s/\s+/ /g; print $_."\n"; }
2006-09-14 Retitled by planetscape, as per Monastery guidelines
Original title: 'Annoying Problem: solved'
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: A Regex for no-break space Unicode Entities
by bart (Canon) on Sep 13, 2006 at 09:51 UTC | |
by ysth (Canon) on Sep 14, 2006 at 08:17 UTC | |
by bart (Canon) on Sep 14, 2006 at 09:47 UTC | |
by ysth (Canon) on Sep 14, 2006 at 15:05 UTC | |
|
Re: A Regex for no-break space Unicode Entities
by graff (Chancellor) on Sep 13, 2006 at 13:00 UTC | |
by kettle (Beadle) on Sep 13, 2006 at 13:40 UTC | |
by graff (Chancellor) on Sep 13, 2006 at 23:43 UTC | |
|
Re: A Regex for no-break space Unicode Entities
by kettle (Beadle) on Sep 13, 2006 at 13:38 UTC |