1
DutchMan
Regex enabled
  • 2003/11/26 16:07

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


What does the symbol ^ in webmaster|^xoops|^admin? And what is regex enabled?

DutchMan

2
ackbarr
Re: Regex enabled

Both questions are really tied together.

Regular Expressions (or RegEx for short) is a powerful pattern matching language that has been implemented in several programming languages and utilities that work with large amounts of text.

the ^ character indicates that the matched string should be at the beginning of a line and the | character is equivalent to a logical OR.

The listed regular expression matches the following
"webmaster" anywhere in the string OR
"xoops" at the beginning of the string OR
"admin" at the beginning of the string

Regular Expressions can be quite complex, or very simple. They are commonly used for data entry validation tasks like:

ensuring a phone number is written in an appropriate format,
ensuring email addresses are written in a valid syntax,
ensuring proper date formats.

There are many resources available online for working with regular expressions. I have listed a couple of resources below:

Newbie Guide to Regular Expressions
PHP and Regular Expressions 101 (Programming)

3
DutchMan
Re: Regex enabled
  • 2003/11/27 6:09

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


Hi there ackbarr,

Thanks for the information and for the links. I will checked them out today!

DutchMan

4
ajaxbr
Re: Regex enabled
  • 2003/11/27 6:19

  • ajaxbr

  • Quite a regular

  • Posts: 276

  • Since: 2003/10/25


You can learn by example with the Regular Expression Tester

5
DutchMan
Re: Regex enabled
  • 2003/12/5 18:38

  • DutchMan

  • Just popping in

  • Posts: 22

  • Since: 2003/11/20


I have checked out the links and have read and learned a lot about Regex. And the tester seems to be a great tool!

By the way, who can provide me with a list of free email hosts? I don't want them in my user profiles!

Login

Who's Online

155 user(s) are online (88 user(s) are browsing Support Forums)


Members: 0


Guests: 155


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits