matchChunk question
Mark Smith
Mark_Smith at cpe.umanitoba.ca
Tue Dec 27 16:26:39 EST 2011
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.
More information about the use-livecode
mailing list