I'm trying to find a word in a simple string no matter how it's written. For example:
'Lorem ipsum dolor sit amet lorem.'
Let's say I search for 'lorem' written in lowercase and I'd like to replace both 'lorem' and 'Lorem' with 'example'. The thing is, I want to search and replace the word no matter how it's written.
I think this should be done using regex but I'm not very familiar with it. Maybe you guys can help.