From: Sebastian Hungerecker Date: 2008-02-28T03:50:14+09:00 Subject: Re: Aliasing, and another regex question J. Cooper wrote: > Is there a preferred way to alias inconveniently long things like > Oniguruma::ORegexp? Well you can do something like OR = Oniguruma::ORegexp > Is it possible to have one regex that matches all lines that have word > "foo", but only if word "bar" doesn't appear anywhere on the line? The best way would probably be to just use two regexen. One to select all lines with foo and another to filter out those with bar. HTH, Sebastian -- Jabber: sepp2k@jabber.org ICQ: 205544826