Tuesday, March 18, 2014

jQuery Notes

jQuery Notes

Find and Replace Text using JQuery
/*
Find `[IMG]**url**[/IMG]` and replace to ``
*/
$('body').html( $('body').html().replace(/\[IMG\](.*?)\[\/IMG\]/gi,''));