tenants
Well-known member
Hi, I'm just creating my first mod
I'm very new to regex, and wondered if there any regex people here?
All I'm trying to do is convert:
to
What I've come up with so far is :
But this also removes the last part of the string "sometext"
I acutally wanted to use something like:
but this didnt work either
I'm very new to regex, and wondered if there any regex people here?
All I'm trying to do is convert:
PHP:
a string [URL='anychars']sometext
to
PHP:
a string sometext
What I've come up with so far is :
PHP:
$str = preg_replace('/[\[URL=\':.\/\-\d\w?\'\]]/', "", $sigLinks[$i]);
But this also removes the last part of the string "sometext"
I acutally wanted to use something like:
PHP:
preg_replace('/[\[URL=\'[.*]\'\]]/
but this didnt work either