In words ending by (an , I want to replace the ending (an by an when the word is preceded by le or du . Like removing the opening parenthesis. I tried many variants without success. Last one is:
result = result.replace(/(?<=b(le|du)s)(anb/g, 'an');
Blancer.com Tutorials and projects
Freelance Projects, Design and Programming Tutorials
In words ending by (an , I want to replace the ending (an by an when the word is preceded by le or du . Like removing the opening parenthesis. I tried many variants without success. Last one is:
result = result.replace(/(?<=b(le|du)s)(anb/g, 'an');