I have some innerHTML stored as a string, and I would like to know how
many time throughout the whole innerHTML the occurence of "Hello<BR>"
occurs. I was wondering if RegEx or some elequant method exists?
Thanks,
Yin
For example: InnerHtml = <b>thisis Hello<BR>
&npsb<script>Al ert("Test")</script>Hello<BR >
I would like to use Javascript to parse this and return me answer of
2, since the string
Hello<BRoccurs exactly twice.
many time throughout the whole innerHTML the occurence of "Hello<BR>"
occurs. I was wondering if RegEx or some elequant method exists?
Thanks,
Yin
For example: InnerHtml = <b>thisis Hello<BR>
&npsb<script>Al ert("Test")</script>Hello<BR >
I would like to use Javascript to parse this and return me answer of
2, since the string
Hello<BRoccurs exactly twice.
Comment