Hi Mark,

You need to put the part of the regex that you want to know the start and end 
position of inside parantheses. In your case, this seems to be the entire regex.

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Become our partner in sales http://qery.us/1bq Start selling Color Converter 
today. 20% commission!

On 27 dec 2011, at 22:26, Mark Smith wrote:

> 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


_______________________________________________
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