Results 1 to 3 of 3

Thread: Perl RegEx for a single word

  1. #1
    Senior Member
    Join Date
    Mar 2004
    Location
    California
    Posts
    724

    Default Perl RegEx for a single word

    I'm trying to add a challenge word to the registration page of a customer's Joomla installation, and you can have a Perl Regular Expression to validate a field. But I'm not having any success getting the regular expression to work.

    The challenge word is "Mandala" ... with the prompt "Type 'Mandala' in the box to prove you are a human". The regular expressions I have tried are:

    Mandala
    ^Mandala$
    ^Mandala$.
    ^[M][a][n][d][a][l][a]$ (and also without the ^ and $ characters.

    So far, no joy. What is the regular expression to match a specific word like "Mandala"?

  2. #2
    Senior Member
    Join Date
    Mar 2004
    Location
    California
    Posts
    724

    Default

    Got it ... the regular expression that Joomla accepted was "/^Mandala/"

  3. #3
    Senior Member
    Join Date
    Sep 2005
    Location
    Russia, Nizhny Novgorod
    Posts
    315

    Default

    Yup, because it's Perl...

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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