2
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 ExpressionsPHP and Regular Expressions 101 (Programming)