Abdullah Al Mamun

Sr. Software Engineer

  • HOME
  • ABOUT ME
  • MY WORK
  • CONTACT ME

Archive for the ‘ Regular Expression ’ Category

Regular Expression Patterns

  • January 8th, 2010
  • Posted in Regular Expression

From various sources I have collected the following regular expression patterns. They helped me a lot in front-end and back-end validation. Alpha: Pattern: ^[a-zA-Z_ ]+$ Description: Allows only ‘A-Z’, ‘a-z’, space ( ‘ ‘ ) and underscore ( ‘_’). Alphanumeric: Pattern: ^[a-zA-Z0-9_ ]+$ Description: Allows only ‘A-Z’, ‘a-z’, ‘0-9′, space ( ‘ ‘ ) and underscore ( ‘_’). Email: Pattern: /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i Numeric: Pattern: ^\d+$ Decimal: Pattern: ^\d+(?:\.\d{0,2})?$ Date [ READ MORE ]

Information

Change this sentence and title from admin Theme option page.
RSS FEED

Recent entry

  • 2010-03-11
  • PHP Payment Library for Paypal, Authorize.net and 2Checkout (2CO)
  • 2010-01-08
  • Regular Expression Patterns

Archive

  • March 2010
  • January 2010

Category

  • PHP
  • Regular Expression
  • Copyright ©  2010  Abdullah Al Mamun
  • Theme designed by mono-lab
  • Powerd by WordPress