Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

preg help ;___;

Name: Anonymous 2007-11-18 23:47

Been fucking with preg functions and i can't work out a damn expression to match something like {phrase.news_hello} if anyone can help it just needs to be {word of any length.word of any length and underscores}

gogogogogogo

Name: Anonymous 2007-11-19 0:29

$this->data = preg_replace( '/\{([a-zA-Z0-9_]+)\.([a-zA-Z0-9_]+)\}/', '<?php echo \$$1[\'$2\']; ?>', $this->data );

Adjust as needed.

Name: Anonymous 2007-11-19 0:59

>>1

lol SMARTY

Name: Anonymous 2007-11-19 2:50

try a coat hanger.

Name: Anonymous 2007-11-19 3:23

>>4
a rusty coat hanger.

Name: Anonymous 2010-11-27 23:15

Name: Anonymous 2010-12-09 5:59


Don't change these.
Name: Email:
Entire Thread Thread List