Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

How do I find $a only where it's not followed by $b and then replace it with $c?

by vroom (His Eminence)
on Feb 01, 2000 at 23:41 UTC ( [id://2662]=perlquestion: print w/replies, xml ) Need Help??

vroom has asked for the wisdom of the Perl Monks concerning the following question:

How do I find $a only where it's not followed by $b and then replace it with $c?

Originally posted as a Categorized Question.

  • Comment on How do I find $a only where it's not followed by $b and then replace it with $c?

Replies are listed 'Best First'.
Re: How do I find $a only where it's not followed by $b and then replace it with $c?
by neshura (Chaplain) on Feb 15, 2000 at 03:19 UTC
Re: How do I find $a only where it's not followed by $b and then replace it with $c?
by cored (Scribe) on Oct 09, 2002 at 00:41 UTC
    s/$a[^$b]/$c/;

    Originally posted as a Categorized Answer.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found