corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » PHP RegEx (Regular Expressions)


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author PHP RegEx (Regular Expressions)
Dom
Member

Registered: 13th Sep 03
User status: Offline
14th May 10 at 10:36   View User's Profile U2U Member Reply With Quote

Does anyone know an expression to match alphameric and symbol characters (specifically bracket characters)?

Currently using preg_match('/^[a-zA-Z\'\s\-]*$/', $string), would i be right in thinking preg_match('/^[a-zA-Z\'\s\(\)\-]*$/', $string) would work?
ed
Member

Registered: 10th Sep 03
User status: Offline
14th May 10 at 10:43   View User's Profile U2U Member Reply With Quote

I always use this site for building regular expressions. So useful!

http://gskinner.com/RegExr/
Dom
Member

Registered: 13th Sep 03
User status: Offline
14th May 10 at 10:56   View User's Profile U2U Member Reply With Quote

Absolute lifesaver ED!!
ed
Member

Registered: 10th Sep 03
User status: Offline
14th May 10 at 12:50   View User's Profile U2U Member Reply With Quote

Best thing on the internet

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
site update matt10i General Chat 6 167
30th Jun 05 at 19:20
by matt10i
 
XML/PHP Laney Geek Day 6 798
26th Apr 07 at 15:03
by Ian
 
Trax tickets Ian General Chat 30 352
12th Jul 08 at 16:55
by CorsAsh
 
PHP Coding - Contact Form "IF" Statements liamC Geek Day 6 178
1st Sep 09 at 13:08
by liamC
 
PHP Regex Geeks? ed Geek Day 7 226
25th Sep 09 at 22:40
by Tim
 

Corsa Sport » Message Board » Off Day » Geek Day » PHP RegEx (Regular Expressions) 29 database queries in 0.0062790 seconds