On Monday,  7 July 2003 at 11:14:29 +0900, Samuel Tesla wrote:
> Jim Freeze <jim / freeze.org> writes:
> 
> try this:
> 
> puts ("^\n" =~ /^[^]/)
> 
> >  % ruby caret 
> >  caret:1: invalid regular expression; empty character class: /^[^]/
> 
> Just remember, string goes on the left, regex goes on the right.
> 

Actually, it doesn't matter, but Matz prefers the regex on the left.


-- 
Jim Freeze
----------
Be a better psychiatrist and the world will beat a psychopath to your
door.