Hi, shouldn't the following place the start position and end position of the
regular expression found in the input field into the output field?


on mouseUp
   local startpos, endpos
   put fld"input" into tinput
   put "\" & quote & "v" & "\" & quote & ":" into tregularexpression 
   put matchchunk(tinput, tregularexpression, startpos, endpos) into
fld"output"
   put ", " & startpos & ", " & endpos after fld"output"
end mouseUp


What I am getting in output is: true, ,

With no start and end positions. Anyone see the error of my ways? Thanks

-- Mark

PS lc 5.0.2, on a Mac


--
View this message in context: 
http://runtime-revolution.278305.n4.nabble.com/matchChunk-question-tp4238281p4238281.html
Sent from the Revolution - User mailing list archive at Nabble.com.

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to