::HSBC:: EODPos/[eod]compare.outMMDD select good position line ^.{47}(.{11}) \1.*\n ::HSBC:: Ticket Processor output block (?#TktProc block)^-+$\n.*? \[---acct--- ---cusip--- \w+ \w+\].*\n(?n(?:(?!\n-).)*)\n-+\n ::HSBC:: Ticket Processor BB Tran No (?#TktProc BB Tran No)(?<=TRAN\[---acct--- ---cusip--- \d{7}) \d+ (?=\d+\]) ::HSBC:: Ticket Processor Received (?#TktProc Received)Received .*? \[---acct--- ---cusip--- \w+ \w+\] ::HSBC:: Ticket Processor amt/pre_trade_pos/post_trade_pos[nnn] (?#TktProc positions) [ap](?:mt|re_trade_pos|ost_trade_pos)\[-?\d+\.?\d*\] C or C++ comments /(?:\*(?n(?!\*/).)*\*/|/(?:.*\\\n)*.*\n) DQ or SQ string (?:"(?:\\"|[^"])*"|'(?:\\'|[^'])*') DQ string: Probable REGEX (excluding end-DQuotes) (?<=")(?:\\.|[^\\"])*(?:(?#start parens)\(\?|(?#[repeat after class,group,any])[]).][*+?]|(?#[non-greedy repeat])[*+]\?|(?#[char-class])\[\^?(?:\\.|[^\\"])+?\]|(?#pipe)\||(?#double backslash)\\\\[1-9&dDlLsSwWyYuUabefnrtv])(?:\\.|[^\\"])*(?=") DQ string: Probable REGEX (excluding end-DQuotes; no comments) (?<=")(?:\\.|[^\\"])*(?:\(\?|[]).][*+?]|[*+]\?|\[\^?(?:\\.|[^\\"])+?\]|\||\\\\[1-9&dDlLsSwWyYuUabefnrtv])(?:\\.|[^\\"])*(?=") DQ string: Start DQ for a valid string (?="(?:\\.|[^\\"])*")" DQ string: Unterminated DQ string "(\\.|[^\\"])*$ DQ string: Valid DQ string "(?:\\.|[^\\"])*" Find next C++ non-commented close-brace "}" (?n(?:/\*(?:(?!\*/).)*\*/|//[^\n]*\n|[^}]))*\} Find next C++ non-commented open-brace "{" (?n(?:/\*(?:(?!\*/).)*\*/|//[^\n]*\n|[^{]))*\{ Find single-block C/C++ expression (content in \1) (?n\s*\{\s*((?:(?!\s*\})[^{])*)\s*\}) Find single-block C/C++ expression (content in \1) old (?n\s*\{\s*([^{}\s](?:[^{](?!\s*\}))*[^{])\s*\}) Find virtual C++ member function declaration virtual (?n[^;]*\)(?:\s*const)?) Find virtual pure C++ member function declaration virtual (?n[^;]*\)(?:\s*const)?)(?=(?n\s*=\s*0)) Valid NEdit double-quoted string regex "(?:[^\\"]|\\(?:0[0-3][0-7]{1,2}|0[0-7]{1,2}|[xX][0-9a-fA-F]{1,2}|["?\\abefnrtv]))*" match upto non-commented/stringed C/C++ class or struct (?n(?:/\*(?:(?!\*/).)*\*/|"(?:(?:(?|).)*(?) test RE for class/struct spec (?n(?:/\*(?:(?!\*/).)*\*/|//[^\n]*\n|"(?:(?:(?|).|(?:).|)*(?)