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

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

by ikegami (Pope)
on Jul 14, 2005 at 22:48 UTC ( #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
Node Status?
node history
Node Type: note [id://475077]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (1)
As of 2017-07-27 03:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (402 votes). Check out past polls.