[mb-users] $rsearch doesn't work in Picard?
Philipp Wolfer
phw at rubyforge.org
Thu Jun 19 07:49:26 UTC 2008
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/fcea4e8e/attachment.htm
More information about the MusicBrainz-users
mailing list