RegEx pattern help

P

pbreah

I need to figure out a pattern that can match each letter of the
message, but leaves all the html entities alone.

For example, I have a input like this:

<div>
This is the content &nbsp; &lt; Hello &gt;
</div>

Just as an example to make it more clearer, If I wanted to replace the
all letters of the message with the number "1" I would have this
resut:

<div>
1111 11 111 1111111 &nbsp; & 11111 &gt;
</div>

Can anyone help?

Thanks in advanced...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,219
Latest member
KristieKoh

Latest Threads

Top