Petr Dupovnik wrote: > What regular expression would pull each instance of "[.*]" into a separate > element in an array? "some miscellaneous text [sdfsdf.wer], some more miscellaneous text [vbnfg.thy], and yet more text [jkhjkhjk.345]".scan(/\[[^\]]+\]/).flatten => ["[sdfsdf.wer]", "[vbnfg.thy]", "[jkhjkhjk.345]"] HTH, Sebastian -- Jabber: sepp2k / jabber.org ICQ: 205544826