Forum Moderators: open
I need to test an incoming string for the presence of ASCII 0298 within a specific word, p(0298)n.
I don't want to convert it and I won't know its position in the string, I just need to know if it's in the string.
Here's my first stab, but I know I'm missing something:
if (Title.indexOf('P'+chr(0298)+'n') == -1) {
do something...
}
I totally made up the chr() part for this example, but what's the correct javascript code for that concept? Is indexOf even workable in this situation?
Thanks,
Glenn