javascript Programming Glossary: catdogcat
regex negative look around with 2 adjacent matches http://stackoverflow.com/questions/17340966/regex-negative-look-around-with-2-adjacent-matches JavaScript var regex new RegExp cat dog cat g var text catdogcat catdogdog catdogdogcat .replace regex 000 console.log text It.. .replace regex 000 console.log text It ouputs this catdogcat cat000000 cat000dogcat But I though it should output this catdogcat.. cat000000 cat000dogcat But I though it should output this catdogcat cat000000 cat000000cat Why isn't the second dog in catdogdogcat..
|