Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Regular Expression to match [shortcodes].
- $regex = '(\[title(.*?)?\](.+?)?\[\/title\])';
- // Store them in an array
- preg_match( $regex, $content, $action_matches );
- // Remove them.
- preg_replace( $regex, '', $content );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement