WikipediA search tool (help needed to trim wats instead closed brakets)


#1

I need a tool to right click and search wikipedia,

The only problem is my album tag has the Catalog # in it

I need to just search everything up until whatever is in closed brackets

eg.
Search
I said EP

Instead of
I said EP [LONS05201Z]

Below is the code I have tried. I've searched the forum but i just copied the $trim command from a script for discogs I had.

Thanks in advance

http://en.wikipedia.org/wiki/Special:Search?search="%album%"$trim($regexp($repl($regexp($regexp(%album%,\'['.*\']'.*,),\(.*\).*,),-, ,_, ),



#2

The code was incomplete.
Here are some modifications:

http://en.wikipedia.org/wiki/Special:Search?search=$replace($regexp(%album%,'\s*\[.*\].*',), ,+)

http://en.wikipedia.org/wiki/Special:Search?search=$replace($trim($replace($regexp($regexp(%album%,'\[.*\].*',),'\(.*\).*',),-, ,_, )), ,+)

#3
QUOTE (dano @ Mar 3 2011, 18:49) <{POST_SNAPBACK}>
The code was incomplete.

Here are some modifications:

http://en.wikipedia.org/wiki/Special:Search?search=$replace($regexp(%album%,'\s*\[.*\].*',), ,+)

http://en.wikipedia.org/wiki/Special:Search?search=$replace($trim($replace($regexp($regexp(%album%,'\[.*\].*',),'\(.*\).*',),-, ,_, )), ,+)<!--QuoteEnd--></div><!--QuoteEEnd-->

thanks very much dano

btw can you please explain the difference in the two codes.

Would give my right arm to know this stuff. would mean I could also do the beatport script I so desperately need!!