Code: Select all
put empty into findList
if matchChunk(textBuffer,testValue,findList)=TRUE then
combine findList with return
answer findList with "OK"
end if
Any pointers?
Thanks, Walt
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
put empty into findList
if matchChunk(textBuffer,testValue,findList)=TRUE then
combine findList with return
answer findList with "OK"
end if
Code: Select all
put field 1 into textBuffer
put "(?i)(and)" into testValue
put empty into s1
put empty into e1
get MatchChunk(textBuffer,testValue,s1,e1)
if it is true then
answer "Start of string" && s1 && " End of string" && e1 with "OK"
else
answer "not found"
end if
Code: Select all
put field mySearchString into tSearchString
Code: Select all
put "("&field mySearchString&")" into tSearchString
get matchChunk(someLargeText, tSearchString, startChar, endChar)
Sigh,If the regularExpression includes a pair of parentheses, the position of the substring matching the part of the regular expression
inside the parentheses is placed in the variables in the positionVarsList.