A Regular Expression contains one or more of the
following:
Visit Advance Bash scripting for more informations
- A character set. These are the characters retaining their literal meaning. The simplest type of Regular Expression consists only of a character set, with no metacharacters.
An anchor. These designate (anchor) the position in the line of text that the RE is to match. For example, ^, and $ are anchors.- Modifiers. These expand or narrow (modify) the range of text the RE is to match. Modifiers include the asterisk, brackets, and the backslash.
Visit Advance Bash scripting for more informations