Thank you Ultimater. This seems to be an excellent solution. I wonder why I get the same combination for all the elements. Is there something I should do with array "a" that adds ' and " to the word....
your solution will only give one combination. I think the right solution will give some 100 different combinations. The problem is that the letters shouldn't be change all at once (so the option "g"...
I just want to write out the list of all those strings as I listed those 5 strings as example.
I will very gratefull if you can give me the answer in regexp, cause i am not so good in regexp.
...
does someone know how to modify this to a full-solution? (so it ALWAYS remove both elements).(i need it because i generate these both div dynamically with a button inside document and i need to...
I found a half-solution that removes both elements first time but removes only second element afterward. I put a form-tag around both div and remove all childs of this form.
The expression is a mix of lookabehind and lookahead (?<= is positiv lookabehind and ?= is positive lookahead) and the answer is no. JavaScript does not support positiv/negative lookabehind.
How can I inverse matching?
I got <.*?\w+.*?> that matches all words inside angle brackets. Now I just want to inverse that matching so that all words outside angle brackets will be matched.
Thx.
it doesn't work. your pattern will match all e or a that is preceded with any character excluding sapce,' or ". http://gskinner.com/RegExr/
I want to match the first character of every word if it...
This pattern [^'|\"]\b(e|a) matches e or a that are not preceded by ' or " but it also matches the space before e or a. Why?
How can I exclude that space?
Is it possible to create javascript application inside flash and then don't worry about browser compatiblity, as flash is cross browser itself. As many methods or properties may or may not function...
is it possible to avoid using regExp constructor so we can have a single line like this:
inStr = inStr.replace(oldWordArr[i]+"/(?![^(]*\))/ig", newWordArr[i]);
I am not sure if "ig" is allowed to...
Does JavaScript support positive lookahead?
I want to match every charater except html tags.
I found that /(?<=^|>)[^><]+?(?=<|$)/g do the job in http://gskinner.com/RegExr/ but i got sytax error...