Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Newbie regular expressions question

by Anonymous Monk
on Apr 11, 2014 at 22:22 UTC ( [id://1082034]=note: print w/replies, xml ) Need Help??


in reply to Newbie regular expressions question

:) Hi

code tags are for both data and code

I see you're not writing perl regex , but some other language (glob), but even in that language you have it backwards from what you say you want

shouldn't skip perlintro#Simple matching, perlintro#Simple substitution, perlintro#More complex regular expressions and perlrequick and try

s{ip-compute-([^-]+)-internal}{ip-compute-10.10.10.1-internal}g;

Log In?
Username:
Password:

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

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

    No recent polls found