Jump to content

[SOLVED] eregi syntax explanation


ballhogjoni

Recommended Posts

You need $ at the end. Here's the rest:

 

NODE                    EXPLANATION

----------------------------------------------------------------------

  ^                        the beginning of the string

----------------------------------------------------------------------

  [a-zA-Z0-9_]+            any character of: 'a' to 'z', 'A' to 'Z',

                          '0' to '9', '_' (1 or more times (matching

                          the most amount possible))

----------------------------------------------------------------------

  @                        '@'

----------------------------------------------------------------------

  [a-zA-Z0-9\-]+          any character of: 'a' to 'z', 'A' to 'Z',

                          '0' to '9', '\-' (1 or more times

                          (matching the most amount possible))

----------------------------------------------------------------------

  \.                      '.'

----------------------------------------------------------------------

  [a-zA-Z\-\.]            any character of: 'a' to 'z', 'A' to 'Z',

                          '\-', '\.'

----------------------------------------------------------------------

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.