2 ms·
> when you start to have trouble with your regex because it is conflicting with line returns That definitely happens, but 9 times out of 10, you can add /m to
by knodi123 3y ago
> when you start to have trouble with your regex because it is conflicting with line returns
That definitely happens, but 9 times out of 10, you can add /m to the end of the regex, and now ^ and $ match individual lines, while \A and \Z match the entire string.