Jump to content

Matching bbcode?


darkfreaks

Recommended Posts

		
		$search=':tester:';

  $re1='.*?';	# Non-greedy match on filler
  $re2='((?:[a-z][a-z]+))';	

  if (preg_match_all ("/".$re1.$re2."/is", $search, $text)) 
  {
      header('http://www.mafiahitman.com/HOMO.php');
  }

 

is that efficient enough :confused:

Link to comment
https://forums.phpfreaks.com/topic/193434-matching-bbcode/#findComment-1018374
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.