The Artima Developer Community
Sponsored Link

Java Buzz Forum
Anatomy of a Regex

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Paul Kilroy

Posts: 58
Nickname: paulkilroy
Registered: Jul, 2004

Paul Kilroy is a Frustrated Programmer
Anatomy of a Regex Posted: Jul 27, 2004 9:21 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Paul Kilroy.
Original Post: Anatomy of a Regex
Feed Title: The Frustrated Programmer
Feed URL: http://liberty.phpwebhosting.com/404.html
Feed Description: The problems I encounter on a daily basis, blogged for posterity. All content will be original, contain poor grammar and a few mispellings.
Latest Java Buzz Posts
Latest Java Buzz Posts by Paul Kilroy
Latest Posts From The Frustrated Programmer

Advertisement
In a recent post by Jason Bell, he asks for some help with a regex for validating email addresses. A commenter suggested this: ^[a-zA-Z0-9][_\\-\\.\\w]*@[\\w\\.\\-]+\\.[a-zA-Z]{2,4}$ If it makes sense I'm going to break it down into its pieces: 1) [a-zA-Z0-9] - Match 1 letter or number 2) [_\\-\\.\\w]* - Match 0 or more of: _ - . or a letter or number 3) @ - The @ character 4)

Read: Anatomy of a Regex

Topic: [Jul 20, 2004 12:55 PDT] 13 Links Previous Topic   Next Topic Topic: Being corrupted by other languages is good :)

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use