Match All Image Tags Using REGEX

/ PHP / by Paul Robinson / 0 comments

While I am busy with the update of The Attached Image (which is taking a while) I thought I’d write a post about something that is commonly searched for, or so I’ve read. Matching image tags using REGEX can be difficult, but I’m here to, hopefully, make it easier.

Read more

PHP Tip #6: str_replace Is Faster

/ PHP / by Paul Robinson / 1 Comment

This is probably a very well known tip, but for those new to PHP it’s handy. When needing to replace something try & use str_replace instead of preg_replace. Always remember that REGEX is costly & should only be used when it is really needed. If you need to do a case insensitive replace then use str_ireplace.

Read more

I'll keep your WordPress site up-to-date and working to its best.

Find out more