# Other websites in the Official Discourse Affiliate plugin

**URL:** <https://meta.discourse.org/t/other-websites-in-the-official-discourse-affiliate-plugin/47819>\
**Category:** Feature\
**Tags:** affiliate\
**Created:** [26 Julio, 2016 13:01 UTC](https://meta.discourse.org/t/other-websites-in-the-official-discourse-affiliate-plugin/47819 "2016-07-26T13:01:59Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Steven](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/steven/32/187890_2.png) [@Steven](https://meta.discourse.org/u/Steven)\
**Post date:** [28 Julio, 2016 03:17 UTC](https://meta.discourse.org/t/other-websites-in-the-official-discourse-affiliate-plugin/47819/2 "2016-07-28T03:17:24Z")

</div>

Yatta!

I did it. But It was painful 😅

I think I had a good regex (at least test regex websites seemed to think so) but when I used something like this in the ASIN regex `(\/[A-Za-z0-9_\/-]*)` it always captured `/www` and not the url after `ldlc.com/`.

To succeed, I had to use `{5,}` in my ASIN regex. This way, it had to ignore the `/www`. It’s ugly, the experts here will cry while facing this awful coding. But hey… it works 😆

There must be a better way to do it tho, if someone has an idea, I can still try it..

Anyway I can move on to the next website I want to add. It will be a lot easier than this one.

---

_[View the full topic](https://meta.discourse.org/t/other-websites-in-the-official-discourse-affiliate-plugin/47819)._
