Your update isn't really any different than your first crack at it. A dot is equivalent to your character class, [^\n], as long as there is no /s modifier on the regex. A dot means "match any character except for a newline."
-sauoq "My two cents aren't worth a dime.";
In reply to Re: Re: How do I match lines of 40 characters long in a block of text?
by sauoq
in thread How do I match lines of 40 characters long in a block of text?
by kleinbiker7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |