Code: Select all
RegExp = CreateRegularExpression(#PB_Any, "snapshot_[0-9]{10}.jpg")
If RegExp
If MatchRegularExpression(RegExp, "SNAPSHOT_0438293845.jpg")
Debug "Match"
Else
Debug "No match"
EndIf
Else
Debug RegularExpressionError()
EndIf
Code: Select all
RegExp = CreateRegularExpression(#PB_Any, "snapshot_[0-9]{10}.jpg")
If RegExp
If MatchRegularExpression(RegExp, "SNAPSHOT_0438293845.jpg")
Debug "Match"
Else
Debug "No match"
EndIf
Else
Debug RegularExpressionError()
EndIf
Code: Select all
RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")
hallodri wrote:try this
Code: Select all
RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")