|
CGI - Regular Expressions |
tutorial by Matt |
Regular expressions are used to search through strings or user data.
Regular expressions are very hard to learn. I really can't tell you much about them
because you just have to know how to use them with other statements you have already
learned such as the if conditional you learned last section.
^ Matches the beginning of a string.
. Matches any single character.
$ Matches the end of the string.
| Allows you to specify two values that can cause the match to succeed
() Parentheses lets you affect the order of pattern evaluation.
[] Lets you create a character class.
\n The newline character.
\ Escapes the charater that follows.
\t The tab character.
Congradulations you have just finished the CGI Tutorial. You
should now have a good understanding of CGI to make your own
scripts. You should register for the site so you can be
notified if there are any updates. Please let us know if
you have any problems with this tutorial, we would like to make
it as easy as possible to learn CGI so please tell us what you
thought by filling out the info below.
|
|
|
|