This should do it - m/Cell (\d+)(.*), HEH/
On Fri, Nov 4, 2011 at 1:42 PM, Chris Stinemetz <chrisstinem...@gmail.com>wrote: > I am trying to match a line that has HEH in it. > > I would also like to store the number follow CELL in memory variable $1 > and store everything following the number and upto excluding ", HEH" in > memory variable $2 > > so this line: > > Cell 999 CDM 1, 2, CBR 1, 15MHz, HEH > will equal: > > $1 = 999 > $2 = CDM 1, 2, CBR 1, 15MHz > > Thank you in advance. >