g
- global matchi
- ignore casem
- match over multiple lines\
- special characters to literal and literal characters to special?
- matches zero or one times*
- matches zero or more times+
- matches one or more times{n}
- matches n times{n, m}
- matches at least n times, but not more than m times^
- matches at the start of the line$
- matches at the end of the line\b
- matches at the beginning or the end of a word(?:x)
- matches x not remember the matchx(?=y)
- matches x only if x is followed by yx(?!y)
- matches x only if x is not followed by y\s
- matches whitespace \S
- matches anything but a whitespace \f
- matches a form-feed\n
- matches a linefeed\r
- matches a carriage return\t
- matches a horizontal tab\v
- matches vertical tab\w
- matches any alphanumeric character including the underscore. Equivalent to [A-Za-z0-9_] \W
- matches any non-word character. Equivalent to [^A-Za-z0-9_] .
- matches any character except a newlineIt's not an easy job to parse HTML tags of the whole page using regular expressions. But if you are dealing with a part of HTML tags and handle it as a string, the following regular expressions may be of your help.
<h4 class="sds">And more ...</h4>
<div class="tab0">CSS code formatter</div><div class="tab2">CSS code compressor</div>
<div class="sds">not sure where it can be used</div></br>
<div class="tab1">tabs generator</div>
<div class="sds">javascript + CSS ...</div>
<span class="csc">Regex examples</span>
<div style="color:#6699cc">round corner</div>