matchText question

Michael Doub mikedoub at gmail.com
Wed Feb 25 20:45:21 CET 2015


Am I doing something really crazy here?  There is no way that the result 
will be true.   Replace the " hhh "  with "*/" and you still get true 
but it is not doing the capture.   Replace the " hhh " with "function 
foo" and you get an expected response.

Should I even expect alternatives to be supported?

-= Mike


on mouseUp
     put "(?i)^\s*(\-\-\s+begin)\s+(\w+)*+|" & \
          "^\s*(on)\s+(\w+)*+|" & \
          "^\s*(function)\s+(\w+)*+|" & \
          "^\s*(command)\s+(\w+)*+|" & \
          "^\s*(private\s+function)\s+(\w+)*+|" & \
          "^\s*(private\s+command)\s+(\w+)*+|" & \
          "^\s*(\/\*\s+include)*+|" & \
           "^\s*(\*\/)*+" \
          into expr
     get MatchText(" hhh 
",expr,r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14)
    answer it & cr & r1,r2,r3,r4,r5,r6,r7,r8,r9,r10,r11,r12,r13,r14
end mouseUp



More information about the use-livecode mailing list