Beefy Boxes and Bandwidth Generously Provided by pair Networks vroom
There's more than one way to do things
 
PerlMonks  

Re: split string on key word

by ickyb0d (Monk)
on Sep 22, 2005 at 18:40 UTC ( [id://494330]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to split string on key word

Might be a little shady, but should work.
my @array_of_strings; my $string = '12-12 WANG 28 Jul H PRG SPEC 1320m Bk past midfield wide +,btn car top T J Bau 57 (12) 7/7 Wnr: VENUS SERENA 1:26.82 13.5L'; @array_of_strings = split(/Wnr/, $string); #replacing removed Wnr $array_of_strings[1] = 'Wnr' . $array_of_strings[1]; # $array_of_strings[0] = '12-12 WANG 28 Jul H PRG SPEC 1320m Bk past +midfield wide,btn car top T J Bau 57 (12) 7/7' # $array_of_strings[1] = 'Wnr: VENUS SERENA 1:26.82 13.5L'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://494330]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.