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

**URL:** https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662
**Category:** Support
**Created:** [March 3, 2011, 5:28pm UTC](https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662 "2011-03-03T17:28:14Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [March 3, 2011, 5:28pm UTC](https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662/1 "2011-03-03T17:28:14Z")

</div>

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%,\'['.*\']'.*,),\(.*\).*,),-, ,_, ),

```

![](https://community.mp3tag.de/uploads/default/original/2X/2/2a84c6439e12389f6105a6a4e22f7cc99fae1805.jpg)

---

<div class="post-metadata">

### Author: ![dano](https://community.mp3tag.de/user_avatar/community.mp3tag.de/dano/32/6_2.png) [@dano](https://community.mp3tag.de/u/dano)
#### Post date: [March 3, 2011, 5:49pm UTC](https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662/2 "2011-03-03T17:49:18Z")

</div>

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%,'\[.*\].*',),'\(.*\).*',),-, ,_, )), ,+)
```

---

<div class="post-metadata">

### Author: ![stevehero](https://community.mp3tag.de/user_avatar/community.mp3tag.de/stevehero/32/337_2.png) [@stevehero](https://community.mp3tag.de/u/stevehero)
#### Post date: [March 4, 2011, 6:26am UTC](https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662/3 "2011-03-04T06:26:05Z")

</div>

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!!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [February 9, 2026, 12:22pm UTC](https://community.mp3tag.de/t/wikipedia-search-tool-help-needed-to-trim-wats-instead-closed-brakets/11662/4 "2026-02-09T12:22:57Z")

</div>


