Here is the pattern:
$urlpattern = '%[^http://][^https://][\w]+(-[\w]+)*(\.[\w]+(-[\w]+)*)*\.[\w]{1,6}(\.[\w]{1,6})*[^/]%';
I have encountered a strange bug that boggles me.
When I search against a string like 'power-tool-world.com' it gimps it and returns 'ower-tool-world.com' (removes the p) but when I use any other letter(not tested on EVERY other letter) it works fine, so 'cower-tool-world.com' returns 'cower-tool-world.com' can someone please help me understand why, but more importantly give me a solution that wouldn't cause this problem?