> guaranteeing that the subsqls have all text up to, but not including the string > "union". > > I suppose I could say: > > rule nonunion { (.*) :: { fail if ($1 =~ m"union$"); } }
What's wrong with: ? rule getstuffbeforeunion { (.*?) union | (.*) } "a union" => "a " "b" => "b" Am I missing something here? Mike Lambert