in reply to Re: Sort options
in thread Sort options

If the OPs list is allowed to have elements like i.e. dana1[23], then it would make sense to let the opening square bracket remain part of the regexp like it was before: (... =~ /\[(\d+)/)[0].