Results 1 to 3 of 3

Thread: Conditions: Can we use PHP predefined regex?

  1. #1
    Join Date
    May 2005
    Posts
    14

    Default Conditions: Can we use PHP predefined regex?

    Hi Russell,

    The formmail.php comments indicate perl expressions be used for setting condition patterns. I was wondering if we can also use PHP regex, especially predefined regex classes in conditions?

    Thanks,

    railer

  2. #2
    Join Date
    Dec 2003
    Posts
    3,980

    Default Re: Conditions: Can we use PHP predefined regex?

    Hi,

    PHP supports Perl regular expressions as well as "PHP" regex. But the Perl regex are faster and much more flexible and powerful.

    FormMail only calls the Perl regex functions, so you must use them.

    Here's the best place to start for doco: http://au.php.net/pcre
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  3. #3
    Join Date
    May 2005
    Posts
    14

    Default Re: Conditions: Can we use PHP predefined regex?

    Quote Originally Posted by russellr
    Hi,

    PHP supports Perl regular expressions as well as "PHP" regex. But the Perl regex are faster and much more flexible and powerful.

    FormMail only calls the Perl regex functions, so you must use them.

    Here's the best place to start for doco: http://au.php.net/pcre
    Thanks for the clarification. Here's a link to a related thread in this forum about Samples of Regular Expressions for use in Conditions.

    Best,

    railer

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Conditions for a valid email address
    By bwv in forum FormMail Subscription Support
    Replies: 5
    Last Post: 04-Jul-2005, 08:24 PM
  2. Multi-forms and certain conditions
    By Chrisanna in forum FormMail Subscription Support
    Replies: 1
    Last Post: 22-May-2005, 08:32 PM
  3. Sample Conditions Code
    By railer in forum FormMail Subscription Support
    Replies: 1
    Last Post: 14-May-2005, 04:01 PM
  4. help with conditions
    By brian in forum FormMail Subscription Support
    Replies: 19
    Last Post: 12-Mar-2005, 07:52 PM
  5. Help with mail_options and conditions
    By wufpack00 in forum FormMail Subscription Support
    Replies: 2
    Last Post: 06-Jul-2004, 12:49 AM

Bookmarks

Posting Permissions

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