Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re^2: Problem with String replace in file

by philosophia (Sexton)
on Oct 22, 2007 at 17:36 UTC ( #646510=note: print w/replies, xml ) Need Help??


in reply to Re: Problem with String replace in file
in thread Problem with String replace in file

if I use

s/\|(?=\|)/|\\N/g; s/^\|/\\N|/; s/\|$/|\\N/g;

it replaces || with ||. The \N seems to be an invisible newline character, and I want it to just be '\N'.
  • Comment on Re^2: Problem with String replace in file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2022-05-25 03:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you prefer to work remotely?



    Results (84 votes). Check out past polls.

    Notices?