Another day of frustration the trying to follow the Dictionary and not getting the expected results.
I have the following code in a mouseUp event and get the expected results with matchText, but matchChunk returns true with the positionVariable empty.
However offset using the variable from matchText does give me the position.
Any help is appreciated
Code: Select all
on mouseUp pButtonNumber
local tStr, regX
put "J<somtthing>Jan 31, 2020</span></td><td class=" into tStr
put ">(Dec|Nov|Oct|Sep|Feb|Ma[ry]|A[up][gr]|J[au][nl])\s([0123]\d),\s(\d{4})" into regX
get matchChunk(tStr, regX ,t2 )
if matchText(tStr, regX ,t1 ) then
wait 0
end if
if matchChunk(tStr, regX ,t2 ) then
wait 0
end if
end mouseUp