Code - RegExp question..

Discussion Forum for the YPOPs! Developers Community.


Code - RegExp question..

Postby javacocoon on February 23rd, 2007, 4:08 pm

I am playing with YPOPs code and came across this regexp code. I am trying extract a html input tag value that has spaces and for some reason I cant make it work. The value I get stops at the first space.

I appreciate input from one of the dev folks.

For example, here is what I have in the resp (html document)

<input name="test" value="jack and jill went up the hill"/>

Here is how I am trying to extract the value

field.SearchRegEx(startPtr, "<input name=\"test\" value=\".*", &endPtr, "<input name=\"test\" value=\"%s\"") != 0 )

dont worry about startPtr, and endPtr, I took this directly (almost) from ypops code.

in this example my field ends up as "jack" and NOT "jack and jill went up the hill"

appreciate input.

javacocoon
YPOPs! Newbie
YPOPs! Newbie
 
Posts: 1
Joined: February 23rd, 2007, 3:58 pm

Return to Developers

Who is online

Users browsing this forum: No registered users and 0 guests

paw prints
SourceForge