Example Regular Expressions

The following are regular expression examples which will match:

        ^.*$

        ^$

        \s+

        (?n\s+)

        (?n\s*?\n\s*)

        (?:\d{1,3}(?:\.\d{1,3}){3})

        [ACDF-IK-PR-W][A-Z]

        (?:http://)?www\.\S+

        (?i(?n<(\S+)\s+\1>))

        <[A-Z][^a-z\s]*>