http://qs321.pair.com?node_id=248385


in reply to Can this be a 1 line or simpler regex?

Here is one more way to do it:
1 while(s!(\n)|(\r)|(\t)|(\f)!('\n','\r','\t','\f')[$#--1]!e);

-enlil