List Info

Thread: seperating content between &




seperating content between &
user name
2006-04-16 21:42:31
hashcode=TEXTINCLUDINGMULTIPLEPERCENTSIGNS&messageType=0
&toUserID=1381934&returnUrl=TEXTINCLUDINGMULTIPLEPER
CENTSIGNSANDPERIODS&subject=SUBJECT&mailbody=MESSAGE

i want to grab the text between each = and &.  the
subject and message
might include both = and & which has to be taken into
consideration

this is being done in ruby. here is what i have so far:

/hashcode=([^.&]+).*messageType=([^.&]).*toUserID=([
^.&]+).*returnUrl=([^.&]+).*subject=([^.&]+).*ma
ilbody=([^.&]+).*/xm

it works if the regex is:

/hashcode=([^.&]+).*messageType=([^.&]).*/xm

but as soon as a i add a third strip it breaks. any help
would be
great. thanks guys

dave


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the
Google Groups "Regex" group.
To post to this group, send email to regexgooglegroups.com
To unsubscribe from this group, send email to
regex-unsubscribegooglegroups.com
For more options, visit this group at http://groups.go
ogle.com/group/regex
-~----------~----~----~----~------~----~------~--~---

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )