<html><head><title>JavaScript RegExp</title></head><body><scripttype="text/javascript">var str ="ab\u0009c";var pattern =/\u0009/g;var index = str.search(pattern);
document.write("Test 1 - returned value : "+ index);
str ="abc";
index = str.search(pattern);
document.write("<br/>Test 2 - returned value : "+ index);</script></body></html>