I'd like to replace a specific word followed by random number followed by specific symbol. I figured the correct php function would be `preg_replace` but I have no idea how to proceed.

what I have is a string that contains a joomla non-sef url which looks like that:

```
index.php?option=com_k2&Itemid=378&lang=el&tag=some-tag-name&task=tag&view=itemlist

```

and I need to remove the `Itemid=378&` part. The number 378 could be a different number at any time so I need to catch all numbers.

Any help would be greatly appreciated