+ 1

Help

So I have this code. Currently, it will change all E' s to lowercase. How can I make it keep the state of the E's? If you don't understand the question, try typing a few capital E's into the textarea, then pressing the button. They should all turn lowercase in the output. https://code.sololearn.com/W5AR7NmwcPNV/?ref=app

8th Jul 2018, 3:19 AM
Daniel Cooper
Daniel Cooper - avatar
3 Answers
+ 2
Then use group select $ in instead of e https://code.sololearn.com/Wy5oZXzSOFjW/?ref=app
8th Jul 2018, 5:53 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
Remove the modifier i on regex
8th Jul 2018, 5:42 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 1
That just makes it find lowercase e's And I tried making another regex for capital E's , but the way I did it just made it duplicate whatever was typed so if I were to type "Hello", the output would be "HelloHello" and both E's turn into, ", E"
8th Jul 2018, 5:48 AM
Daniel Cooper
Daniel Cooper - avatar