Guest User

TincyMCE Template Qtranslate WordPress fix

a guest
Apr 27th, 2012
99
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.          $txt=$p->post_title;
  2.  
  3.          $re1='.*?';    # Non-greedy match on filler
  4.          $re2='(?:[a-z][a-z0-9_]*)';    # Uninteresting: var
  5.          $re3='.*?';    # Non-greedy match on filler
  6.          $re4='((?:[a-z][a-z0-9_]*))';  # Variable Name 1
  7.  
  8.          if ($c=preg_match_all ("/".$re1.$re2.$re3.$re4."/is", $txt, $matches))
  9.          {
  10.          $var1=$matches[1][0];
  11.         }
RAW Paste Data