Hello PHP Guys.
can Anyone help me make this regular expression:
Thank you I dont know how to accompish thisCode:###anythinghere### This is my guess: /'###'a-zA-Z0-9'###'/
| SitePoint Sponsor |
Hello PHP Guys.
can Anyone help me make this regular expression:
Thank you I dont know how to accompish thisCode:###anythinghere### This is my guess: /'###'a-zA-Z0-9'###'/
PHP Code:$Text = 'Hello, this is outer text and ###thisissomeinnertext### but you only want the inner text, don\'tya!';
$Contents = Preg_Match('/#{3}([A-Za-z\d]+)#{3}/', $Text, $Matches) ? $Matches[1] : false;
echo $Contents;
Jake Arkinstall
"Sometimes you don't need to reinvent the wheel;
Sometimes its enough to make that wheel more rounded"-Molona
Thank youThat is good guy
Bookmarks