I have come across a regular expression that I don\'t fully understand - can somebody help me in deciphering it:
^home(?:\\/|\\/index\\.asp)?(?:\\?.+)?$ <
^home(?:\\/|\\/index\\.asp)?(?:\\?.+)?$
From documentation:
(?:...) A non-capturing version of regular parentheses. Matches whatever regular expression is inside the parentheses, but the substring matched by the group cannot be retrieved after performing a match or referenced later in the pattern.