regexp pattern across multiple lines
问题 I have a long regexp pattern that needs to be matched in TCL regexp {.*%MKA-5-SESSION_START: +\((.*) +:.*\) +MKA Session started for.*([0-9A-Fa-f]{4}.[0-9A-Fa-f]{4}.[0-9A-Fa-f]{4}).*AuditSessionID +(.*), +AuthMgr-Handle +(.*)} $op - intf mac auditsessid authmgrhdl How can i split this to multiple lines , splitting using \ is not working as regexp fails. Thanks, Agnel. 回答1: That is a monster RE. The easiest way to split it up would be to use an extended mode RE by putting (?x) at the start of