On Monday, May 27, 2002, at 09:15 , Jon Howe wrote:
[..]
> you should be able to regex this ^M in perl but I have a feeling it is an
> entity representation not 2 individual chars I will check it out and  post
> unless anyone else knows and posts first.
>
> Jon
[..]
>> http://www.wetware.com/drieux/pbl/RegEx/eolOut.txt
>>
>> may help you get the differences in chomp v. RegExing them to
>> a common standard..... Remember that the browsers will do as
>> they will do - and you have to work around that reality....
[..]

this '^M' token is a 'single entity' - you may be interested in
the more 'detailed' output from what 'vi' shows under linux as
I posted it up at:

http://www.wetware.com/drieux/pbl/cgi/ParseParmsToPara.txt

what 'vi' is showing is the <LF> token when it presents '^M'
and why you normally do not see it with a 'cat' unless one
is in the habit of doing 'cat -v' to see the non-Ascii characters.
( cf. man cat) { note the implementation of 'cat' is OS dependent
in how it will present that data .... }

You may wish to review the code referenced in the above two
URL's as they can help present the data....

ciao
drieux

---

serves me right to presume that if the rule set didn't
put the email in the correct folder that the email addr
was FRAGGED... Jon - there are two "n's" in [EMAIL PROTECTED]

his original piece had been:

> I have had this experience when moving files from windows to linux
> the ^M is (from my experience) vi's  way of displaying  a windows control
> character for end of line.
>
> On linux systems I have dealt with this by using the dos2unix utility
>
> if you search on dos2unix you should find a load of converters for win and
> linux/unix platforms dealing with conversion both ways.
>
> you should be able to regex this ^M in perl but I have a feeling it is an
> entity representation not 2 individual chars I will check it out and  post
> unless anyone else knows and posts first.
>
> Jon

so since I am now well and TRULY frumpy about all of this,
I R gonna Rant..... I mean, here I am, sitting all alone,
in the dark, and cold, shivering, with no friends, and nothing
to do but stare at this computer screen, and no one is posting
anything interesting to beginner's mailing list - you people
are NOT keeping the drieux amused....


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to