(?: non-capturing parentheses ^ start of string | or \| pipe character ) #### (?= look-ahead, not part of match $ end of string | or \| pipe character )