I need to create a regex that will select the data between two characters (& - @).
& foo @
I would like to select foo.
Any ideas? Good explanations are also appreciated.
I need to create a regex that will select the data between two characters (& - @).
& foo @
I would like to select foo.
Any ideas? Good explanations are also appreciated.
how about this:
preg_match('~&([^@]*)@~',$content,$match);