ik heb een regex:
Dit werkt wel maar nu wil ik ucfirst en strtolower toevoegen
Dit lukt niet:
Weet iemand een oplossing hiervoor?
PHP:
1
| $txt = preg_replace( "#\\[ra2_player\](.+?)\\[/ra2_player\]#is", "<a href='http://games2.westwood.com/ra2gamelogs/\\1.html' target='_blank'>\\1</a>", $txt ); |
Dit werkt wel maar nu wil ik ucfirst en strtolower toevoegen
Dit lukt niet:
PHP:
1
| $txt = preg_replace( "#\\[ra2_player\](.+?)\\[/ra2_player\]#is", "<a href='http://games2.westwood.com/ra2gamelogs/ucfirst(strtolower(\\1)).html' target='_blank'>\\1</a>", $txt ); |
Weet iemand een oplossing hiervoor?
www.dannyhiemstra.nl