Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Selectively replacing characters inside a string

by markkawika (Monk)
on Jun 11, 2009 at 16:42 UTC ( [id://770700]=note: print w/replies, xml ) Need Help??


in reply to Re: Selectively replacing characters inside a string
in thread Selectively replacing characters inside a string

I do want to replace all non-slash characters with the letter x, but only on a portion of the input string. Specifically, the part between the quotes in file="some/path". And actually, I didn't make it clear, but there will be text before and after the file="some/path", so I have to be careful about what I substitute. The actual input line would look more like:
2009-06-10 19:37:29 GMT [more text here] file="some/path" status=0 des +tination="some more text"
And the only thing I want to filter is the path inside of the file="some/path" stuff.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-09-15 13:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The PerlMonks site front end has:





    Results (21 votes). Check out past polls.

    Notices?
    erzuuli‥ 🛈The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.