BIRT 3.7
Written by: Michael Williams
Featured Refcardz: Top Refcardz:
  1. Scrum
  2. Apache Maven 2
  3. Essential MySQL
  4. Node.js
  5. Groovy
  1. jQuery Selectors
  2. Ajax
  3. Java
  4. Spring Config.
  5. Java Concurrency

Link Details

Link 52155 thumbnail
User 225819 avatar

By BRichard
via phpf1.com
Published: Nov 12 2007 / 03:48

This article will show you how to use PHP regular expressions in your own PHP scripts.
  • 6
  • 3
  • 1473
  • 0

Comments

Add your comment
User 230968 avatar

nodrew replied ago:

1 votes Vote down Vote up Reply

I just want to say, please do not make broad sweeping claims about the history of regular expressions if you do not know it. They were not designed to work with the Unix file system, they were implemented this way, yes. However, a simple search on Google for "history of regular expressions" will bring you many pages. the first is the Wikipedia article, which explains it nicely.

http://en.wikipedia.org/wiki/Regular_expression#History

Sorry, I don't mean to go off on tangents on related to the spirit of the article, but I hate the idea that misinformation like this can spread and become fact for many people.

User 230968 avatar

nodrew replied ago:

2 votes Vote down Vote up Reply

Also, please do not use the prescribed regex for email addresses. It is too strict and does not match all valid addresses.

None of these will match this check, but should:

email.address@sub.server.com - valid
email#address@sub.sub.server.com - valid
email!address@server.com - valid

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Voters For This Link (6)



Voters Against This Link (3)