Couldnt test this as the keyword doesnt exist but if thew syntax is correct should work. is it regexpr$ or regexpr

[code=thinbasic]
' Usage of the REGEXPR$ Keyword example
'
' Syntax - s = REGEXPR$(sMask, sMain, nStart, nVarPos, nVarLen)
' Written by Abraxas

DIM sMask as string value "LO"
DIM sMain as string value "HELLO WORLD"
DIM nStart as DWORD Value 0
DIM nVarPos as dword value 0
DIM nVarLen as DWOrD value 0
DIM s as string
DIM sMsg as string

s = REGEXPR$(sMask, sMain, nStart, nVarPos, nVarLen)

sMsg += "String Mask = " & sMask & $CRLF
sMsg += "String = " & sMain & $CRLF
sMsg += "String Start Position = " & nStart & $CRLF
sMsg += "Match Start Position = " & nVarPos & $CRLF
sMsg += "String Length = " & nVarlen & $CRLF
sMsg += "String Returned = " & s & $CRLF

MsgBox 0, sMsg
[/code]