I need some help. I need to get the number which is after "id_no=" in a field.
I have tried to get it with the code below but the answer box is always empty. It doesn't return the value. Is there a way to return the value that matches with regex? For example, 21234 from the link below.
Inside the field
http://www.abcdef.com/odc/eds.asp?id_no=21234
Code
Code: Select all
answer funwithRegex("id_no=[0-9]*")
Code: Select all
function funwithRegex theName
if matchText( field "Field", theName, theValue) then
return theValue
else
return "not found"
end if
end funwithRegex