Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > preg_match type split

Reply
Thread Tools

preg_match type split

 
 
Paul Lautman
Guest
Posts: n/a
 
      03-04-2007
I have the following string in a variable:

'\074a href="" onClick="pl_go(64);return false;">James T Kirk\074/a>',
'\074a href="" onClick="pl_go(64);return false;">thecaptain\074/a>',
'\074a href="" onClick="pl_go(64);return
false;">\074/a>'

(there are 3 newlines in there).
Is there a simple (possibly regex?) way to split this out to an array to end
up like:

elem[0] = 64
elem[1] = 'James T Kirk'
elem[2] = 'thecaptain'
elem[3]= ''

TIA


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
a split is not a split Dumbell Computer Support 3 03-09-2009 10:45 PM
preg_match type split Captain Paralytic Javascript 3 03-05-2007 01:07 PM
How can I split database results with ExecuteReader and Split? needin4mation@gmail.com ASP .Net 2 05-05-2006 10:36 PM
Small inconsistency between string.split and "".split Carlos Ribeiro Python 11 09-17-2004 05:57 PM
Rejoining two type-5 DVDs from previously split type-9 Ron DVD Video 4 01-05-2004 12:43 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57