[mb-users] $rsearch doesn't work in Picard?
Adam Golding
adamgolding at gmail.com
Thu Jun 19 08:16:08 UTC 2008
hmm, that makes sense, but it doesn't work either! (just tested)
2008/6/19 Philipp Wolfer <phw at rubyforge.org>:
> On Thu, Jun 19, 2008 at 7:39 AM, Adam Golding <adamgolding at gmail.com>
> wrote:
>
>> When I put in $rsearch(foo,foo) and preview nothing is returned (i.e. it
>> keeps what was previously displayed in the preview)--unless I misunderstand,
>> it should return 'foo'.
>
>
> I had a look at it. $rsearch will return the first matched group of your
> regular expression, so unless you have some kind of group in parentheses it
> will return an empty string. $rsearch(\(foo\),foo) should work (I've not
> tested it).
>
> That's how it currently works, but I don't know if it's the way it should
> work. IMHO it's misleading. I expected it to return the first match in the
> string.
>
> --
> Philipp Wolfer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.musicbrainz.org/pipermail/musicbrainz-users/attachments/20080619/8a0c687e/attachment.htm
More information about the MusicBrainz-users
mailing list