[Solved] need help to understand complex javascript reg exp


The given regex is a combination of multiple regex, keep in mind that you can break this complex regex into multiple smaller one, and each smaller one can be easily translated

Refer to this wiki page for finding the meaning of each small regex parts
http://en.wikipedia.org/wiki/Regular_expression

Your regex can be broken into

/^                         Start of line
\s*                        zero or more space non white character
[^#].?                     not equal to hash atleast one
\s                         non white character
:                          colon
\s*                        zero or more space non white character
([a-f0-9.:]+?)             hexa digit (one or more)
\s*                        zero or more space non white character    
-                          dash
\s*                        zero or more space non white character
([a-f0-9.:]+?)             hexa digit (one or more) 
\s*                        zero or more space non white character
$/                         end of line

solved need help to understand complex javascript reg exp