How do you make a regular expression that matches a word with one randomly inserted character?
- by Dfowj
Hey all, i want to use a regular expression to match a word with one specified character randomly placed within it. I also want to keep that 'base' word's characters in their original order.
For example, with the 'base' word of test and the specified character of 'y', i want the regular expression to match all the following, and ONLY the following: ytest, tyest, teyst, tesyt, testy
Incase it matters, im working in javascript and using the dojo toolkit.
Thanks!