Code: Select all
put "(" & the_search & ")" into the_search
get matchChunk(fld "text", the_search, the_start, the_end)
The problem arises when the user puts in an invalid regex, e.g. abc [0. I get an execution error at matchChunk. I want something to simply exit the handler if there is erroneous entry. Any ideas pls?