Advertisement
jargon

Scuff Regex

Sep 29th, 2021
1,428
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.34 KB | None | 0 0
  1. while( preg_match( '/^{{=== (<?scuff>[\p{L}\p{N}\p{P}\p{Sm}\s]) ===}}$/m', $pagedata, $matches) )
  2. {
  3.     $pagedata =
  4.         str_replace(
  5.             '{{=== '.
  6.             $matches[ 'scuff' ].
  7.             ' ===}}',
  8.            
  9.             '<div style="background-image:url(./site data/art/separators/Green Oil Scuff.png);">'.
  10.             $matches[ 'scuff' ].
  11.             '</div>',
  12.            
  13.             $pagedata
  14.         );
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement