I tried these solutions but it did not work.
(/Y/g, "ʏ", "i");
(/Y/g, "ʏ"(?i));
I want to convert Y,y to ʏ using regex. Thank you.
You can just use the flag i to denote case insensitivity
new RegExp(/Y/ig);
Or a less intuitive alternative
new RegExp(/Y|y/g);