I would like help on building a regular expression to find ACII codes
So far I came up with this, http://jsfiddle.net/G7cab/
but as you’ll notice I’m not capturing all the groups that match this expression.
I would appreciate some help
Many thanks in advance.
Here’s a shorter form for (what I understood you) wanted to do based on your fiddle:
So, the regular expression here is
/(&#\d+;)/gBy the way,
&[#num][name];are called (numeric) html entities. The code here is only working for such entities (so, not for named html entities like©(©) etc.). If you want to do that (and within a browser), use the method from the elected answer in this SO question