Click here to get back home

Regex - Unexpected match for /\r/

 HomeNewsGroups | Search

comp.lang.perl.misc - PERL programming language 

get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Regex - Unexpected match for /\r/ Fred Hare 02-06-2007
Posted by Fred Hare on February 6, 2007, 8:28 pm
Please log in for more thread options
show/hide quoted text


show/hide quoted text

show/hide quoted text


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Posted by Joe Smith on February 11, 2007, 9:16 pm
Please log in for more thread options
show/hide quoted text


show/hide quoted text

show/hide quoted text


Repair the corrupted file:

perl -p -i -e 'tr/\r//d' bad_file


--
Tad McClellan SGML consulting
tadmc@augustmail.com Perl programming
Fort Worth, Texas

Similar ThreadsPosted
Unexpected regex Behavior May 14, 2006, 9:02 am
Unexpected RegEx results February 26, 2007, 2:29 pm
Re: Unexpected RegEx results February 26, 2007, 4:05 pm
Multi-Match (to Array) Regex with a precodition match? August 5, 2007, 2:43 pm
RegEx Help, Please? (match after n) June 26, 2005, 10:49 pm
regex to match any url February 14, 2006, 4:02 pm
regex - match anything until September 10, 2009, 12:30 pm
regex match on nothing March 4, 2010, 5:22 am
Printing regex match September 25, 2004, 1:27 pm
regex: match at least one of two expression October 12, 2004, 10:07 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Driving a better car - Fuelzilla.com

Cabling site for homeowners and pros alike - Cabling-Design.com

Friends:

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap
Privacy Policy