I am trying to search a single whole word through a textbox. Say I search "me", I should find all occurrences of the word "me" in the text, but not "memmm" per say.
I am using JavaScript's search('my regex expression')
to perform the current search (with no success).
After several proposals to use the
switches (which don't seem to work) I am posting a revised explanation of my problem:
For some reason this doesn't seem to do the trick. Assume the following JavaScript search text:
var lookup = '
2 PC Games
';
lookup = lookup.trim() ;
alert(lookup );
var tttt = 'tttt';
alert((/(lookup)/g).test(2));
Moving lines is essential
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…