Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Replace text - includes tilde sign?

by Corion (Patriarch)
on Sep 21, 2007 at 11:20 UTC ( [id://640334]=note: print w/replies, xml ) Need Help??


in reply to Replace text - includes tilde sign?

Is the tilde part of the problem?

The reason I'm asking this is, because it's not. It would help us tremendously to help you better if you showed the error message you got. That error message might also help you to find the error.

Also, it often helps to describe what you want a particular snippet to do. In your specific case, it seems as if you want to replace all strings "example.com" to be replaced by "12.34.56.78/~example". Note that this will also affect strings like http://www.badexample.com which will become http://bad12.34.56.78/~example if your replacement worked.

Replies are listed 'Best First'.
Re^2: Replace text - includes tilde sign?
by bobafifi (Beadle) on Sep 21, 2007 at 11:40 UTC
    Got it - yikes. Forgot to backslash the forward slash before the tilde sign! sorry...

    Thanks for all the replies nonetheless!

    -Bob
    bobafifi.com

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-04-18 21:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found