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

Re^3: Replacing a specfied instance of a pattern in a string

by ikegami (Patriarch)
on Jul 14, 2005 at 22:48 UTC ( [id://475077]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $str      = 'Fsih my test variable is fsihd or is it gfsih or gfsih
    +d fsih';
    #                                        1111            2222     3333
    +  4444
    ...
    $str =~ s/\G(.*?)$regexp/$1$replace/;
    
    print("$str\n");
    

Log In?
Username:
Password:

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

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

    No recent polls found