Any questions involving matching text strings to patterns - the pattern is called a "regular expression."
Moderator: General Moderators
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Fri May 06, 2005 11:19 am
is there a regex to detect if a user has inputted characters unsafe for mysql querys? instead of just doing mysql_real_escape_string i want to return the user to the page saying invalid characters were detected blah blah blah.
oh by the way, amazing idea to add this form! will definatly come in handy!
patrikG
DevNet Master
Posts: 4235 Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK
Post
by patrikG » Fri May 06, 2005 11:40 am
shiznatix
DevNet Master
Posts: 2745 Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:
Post
by shiznatix » Fri May 06, 2005 12:07 pm
many thanks! now if you guys now a tutorial to teach someone regex who knows absolutly nothing about regex
that would be a awesome link
Skara
Forum Regular
Posts: 703 Joined: Sat Mar 12, 2005 7:13 pm
Location: US
Post
by Skara » Fri May 06, 2005 1:13 pm
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098 Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia
Post
by Chris Corbyn » Sat May 07, 2005 6:06 pm
I'll make a nice tutorial.... gimme some time and I'll make it "dead simple"