Case insensitive regex?

Just starting out? Need help? Post your questions and find answers here.
Osmiroid
User
User
Posts: 10
Joined: Fri Jun 29, 2007 6:11 pm
Location: Canada

Case insensitive regex?

Post by Osmiroid »

I've read the http://www.pcre.org/pcre.txt but I still can't figure out how to do a case-insensitive match.

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
User avatar
hallodri
Enthusiast
Enthusiast
Posts: 208
Joined: Tue Nov 08, 2005 7:59 am
Location: Germany
Contact:

Post by hallodri »

try this

Code: Select all

RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")

you find it under "INTERNAL OPTION SETTING"
Osmiroid
User
User
Posts: 10
Joined: Fri Jun 29, 2007 6:11 pm
Location: Canada

Post by Osmiroid »

hallodri wrote:try this

Code: Select all

RegExp = CreateRegularExpression(#PB_Any, "(?i)snapshot_[0-9]{10}.jpg")
:P OK, thanks!
Post Reply