"Mumia W." schreef:
> Beginner:
>> This is the sequence I would like to change to a single space:
>> 20a020a020a0
>
> AFAIK, tr/// can't do this.
As Tom wrote: tr/\xA0\x20/\x20/s
Variant: tr/\t\n\f\r \xA0/ /s
--
Affijn, Ruud
"Gewoon is een tijger."
--
To unsubscribe, e-mail: [EMAIL PROTE
On 01/10/2007 12:22 PM, Beginner wrote:
[...]
This is the sequence I would like to change to a single space:
20a020a020a0
[...]
AFAIK, tr/// can't do this. Use s///,
s/[ \xA0]+/ /g;
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://lea
On 10 Jan 2007 at 9:58, Tom Phoenix wrote:
> On 1/10/07, Beginner <[EMAIL PROTECTED]> wrote:
> You can use Perl to tell you what the odd characters are. I often use
> an ASCII table and unpack:
>
> print unpack("H*", $data), "\n";
>
> > MIKE \A0 \A0\A0HOLLINGSHEAD/JIM REED
That has helped an
On 1/10/07, Beginner <[EMAIL PROTECTED]> wrote:
I am trying to parse a file and extract some names. The data has come
with some odd characters in, and these characters are sandwiched in
the middle of the string I am trying to extract.
You can use Perl to tell you what the odd characters are. I
Hi,
I am trying to parse a file and extract some names. The data has come
with some odd characters in, and these characters are sandwiched in
the middle of the string I am trying to extract.
If i open the file in text editor it looks like this:
JON DAVIES/JIM REED
That leading space is transl