Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Replace the nth occurence

by grizzley (Chaplain)
on Nov 21, 2012 at 12:21 UTC ( #1004906=note: print w/replies, xml ) Need Help??


in reply to Replace the nth occurence

my $count = 1; my $str = "a,b,c,d"; $str =~ s/((,.*?){$count}),/$1|/; print $str;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1004906]
help
Chatterbox?
[trahulprajapati]: Hi All
[trahulprajapati]: can anyone please help me to login to a form which uses javascript ?

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (8)
As of 2017-06-22 17:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (525 votes). Check out past polls.