<div>john doe is nice guy btw 8240 E marblehead way 92808 is also</div>
or this string:
<div>sky being blue? in the world is true? 123 Main St., apt c420 Anywhere, USA 12345 jackfroast nipping on the firehead</div>
How would I go about parsing a string similar to the one of the strings above, extracting the address and document.write-ing the address? Would this involve some sort of regex code?
I've tried looking online for a solution using jQuery/Javascript, but to no avail.
Can somebody point me in the right direction? How would I go about accomplishing this in jQuery/JavaScript?
I really need help with binding keyup with other events. The part of the code I am having trouble with is here:
$("#INPUTID")
.bind("mouseenter keyup mouseleave blur",
function () {
For now, it ignores every except keyup, but I want it to use everything, including mouseenter, keyup, mouseleave and blur. I need to do this for a project ASAP, so help would be appreciated.