October 10, 201214 yr Hi everyone, I need to select all instances of "(en)", "(es)" and "(fr)" then wrap them with a <span>, so I get : "<span>(en)</span>", "<span>(es)</span>" and "<span>(fr)</span>" The regex for that is : "\([a-z]{2}\)" Now how to wrap all of this with jQuery ?
October 10, 201214 yr This helps? http://stackoverflow.com/questions/11661408/jquery-how-to-wrap-regex-matched-plain-text-in-an-anchor-tag
Create an account or sign in to comment