In my project I need to be able to replace a regex in a string to another.
For example if I have 2 regular expressions [a-c] and [x-z], I need to be able to replace the string "abc" with "xyz", or the string "hello adan" with "hello xdxn". How would I do this?