Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

How to replace non-printable characters within delimited field

by xaprb (Scribe)
on Jan 03, 2007 at 19:56 UTC ( [id://592818]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $text =~ s/ 
        (?<!\\)'                     # A quote, NOT after a backslash
        (?:[^'\p{IsC}]*?(?:\\')?)*?  # This is hard to explain...
    ...
        (?:[^']*?(?:\\')?)*?         # More stuff...
        (?<!\\)'                     # Another single quote
        /'???'/gx;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://592818]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2024-04-23 07:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found