Is it possible to REGEX (search & replace with nothing) a pattern by letter order..
The pattern would be the word 'script' either split by characters or spaces. Also the data is in a single string.
But could be written in different ways..
document.write('<' + 's' + 'c' + 'r' + 'i' + 'p' + 't' + '>');
or
document.write('<' + 's' + 'c');
document.write('r' + 'i');
document.write('p' + 't' + '>');
or
document.write('<' + 's' + 'c' + 'x' + 'r' + 'i' + 'y' + 'p' + 't' + '>');
but do not match when no spaces or characters exist.. like --> script
Thanks in advance..
M. Brooks
X Concepts LLC
The pattern would be the word 'script' either split by characters or spaces. Also the data is in a single string.
But could be written in different ways..
document.write('<' + 's' + 'c' + 'r' + 'i' + 'p' + 't' + '>');
or
document.write('<' + 's' + 'c');
document.write('r' + 'i');
document.write('p' + 't' + '>');
or
document.write('<' + 's' + 'c' + 'x' + 'r' + 'i' + 'y' + 'p' + 't' + '>');
but do not match when no spaces or characters exist.. like --> script
Thanks in advance..
M. Brooks
X Concepts LLC