francisrammeloo / hotmail.com wrote: > Thanks all, > > I eventually used this > > thePane = line.scan(/Begin\w+/)[0].sub(/Begin/, "") > > where line looks like this: > BeginCaption 0, 20, 66, .. > > It looks a little better but still not very elegant. Is it possible to > make it even still shorter? line[/Begin(\w+)/]; thePane = $1