My interpretation: > (?s)^/\* (.+?) \*/.+?/\* @end.+?\r
(?s) - set the "s" option for this regex. i.e.: treat the entire document as one string ^ - starting from the beginning of a line /\* - look for "/*" followed by a space (.+?) - look for the least number of any characters to satisfy the whole regex, call this token 1 \*/ - look for space followed by "*/" (thus the end of the first comment) .+? - followed by more stuff /\* @end.+?\r - followed by a "/* @end" with stuff after it, up to the end of that line Thus the regex is anchored to the beginning of the comment and the end of the comment, matching out the entire comment and preventing accidental matches against stuff inside the comment block. HTH Alex
smime.p7s
Description: S/MIME cryptographic signature
