chirale

IT and beyond

Here an easy way to search and replace each occurrence a group of characters (in this case underscore and minus) with another (in this case a space) on a specified element (in this case each A), using Jquery javascript library. $(“a”).each(function() { $(this).html($(this).html().replace(/[_-]/g,” “)); }); The first argument passed on replace is a regex, if …

Continue reading