49
rated 0 times
[
52]
[
3]
/ answers: 1 / hits: 24500
/ 12 Years ago, wed, january 30, 2013, 12:00:00
I would like to replace the matched words/characters found in a search, for example if I search for a
and I get the result ádám
, I would like to highlight the á
's. Something like:
ádám.replace(/(a)/gi, '*') // -> should return *d*m
But of course this doesn't works. I'm trying out XRegExp however I just can't figure it out.
How would you do it for all languages? Is it possible?
More From » regex