Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Mar 2003
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Regular Expressions - Tutorial

    Hi!

    You guys have replied to my question perfectly.

    I need to learn regular expressions.
    Can you recommend a dedicated tutorial for beginners and advanced.
    I would appreciate if you could help me.

    THANKS

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,017
    Thanks
    203
    Thanked 2,538 Times in 2,516 Posts

    Smile

    I found the tutorials at

    http://www.javascriptkit.com/javatutors/re.shtml

    http://www.javascriptkit.com/javatutors/redev.shtml

    extremely lucid and helpful. As always a little practice will help to gain an understanding. I don't think that regular expressions are as impentetrable as is sometimes suggested.

    I am not sure why "regular expressions" are so called. Probably something from the dark ages! "Tools for Pattern Matching" seems to me a more descriptive title.

    "Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems." — Jamie Zawinski.

  • #3
    Master Coder
    Join Date
    Feb 2003
    Location
    Umeå, Sweden
    Posts
    5,575
    Thanks
    0
    Thanked 83 Times in 74 Posts
    The name 'regular expression' comes from mathematics. To use something Terry Pratchett might have called "lies to programmers" (read The Science of Discworld if you don't understand what I mean), you might call regular expressions a set of constructs equal to a finite number of characters or items and nonrecursive operations to make on them, that can describe any regular language. So, what is a regular language, then? Well, according to wikipedia it is "a possibly infinite set of finite sequences of symbols from a finite alphabet".

    Really, you probably don't want to read too deep into that. Learn their syntax and their capabilities by using them, instead of delving into computation.
    liorean <[lio@wg]>
    Articles: RegEx evolt wsabstract , Named Arguments
    Useful Threads: JavaScript Docs & Refs, FAQ - HTML & CSS Docs, FAQ - XML Doc & Refs
    Moz: JavaScript DOM Interfaces MSDN: JScript DHTML KDE: KJS KHTML Opera: Standards


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •