Well I have never learn'd Regex, so I need some help with it.
I'm trying to remove the |file = in the string (the code is in wikipedia format):
{{Infobox Music
|name = Body Parts
|release = [[31 January]] [[2005]]
|update = Creature of Fenkenstrain
|members = Yes
|location = Experiment Dungeon
|skillrequired =
|questrequired = [[Creature of Fenkenstrain]]
|hint = This track unlocks at the dungeon south-east of Fenkenstrain's Castle.
|file =
}}
oh if it were just to do str_replace it would be love but no, they have to use multi spaces sometimes :@...
Like:
| file =
Etc but only spaces nothing else,
So I was trying to replace it (as I said):
echo(preg_replace("/(\|)(\s+)(\file)(\s+)(\=)/i", "", $e));
But it didn't work (Yes I tried with many...)
So I come here to ask for help.
Thanks for reading.