tr/M// is sufficient.
In reply to Re^4: Pattern matching regex problem by ikegami in thread Pattern matching regex problem by Anonymous Monk