in reply to regexp question

/s and /m don't interfere with each other. /s influences the meaning of a dot, /m influences the meaning of ^ and $.