I am using javascript in my webpage. I am trying to search a single whole word through textbox. Say I search: 'me' , I should find all the 'me' in the text, but not find 'memmm' per say.
I am using javascript's search('my regex expression') to perform the current search (with no success).
Thank you!
Edit: After several proposals to use the \b switches [which don't seem to work] I am posting a revised explanation of my problem:
amm, from some reason this doesn't seemt to do the tricks. Assume the following javascript search text:
<script type='text/javascript'>
var lookup = '\n\n\n\n\n\n2 PC Games \n\n\n\n';
lookup = lookup.trim() ;
alert(lookup );
var tttt = 'tttt';
alert((/\b(lookup)\b/g).test(2));
</script>
Moving lines is essential