Regex Replace All

Hello everyone: I’m using "Regex Replace All" Java action  in a microflow to replace a part of a string with other srting variable, the Needle regex is not working : 1- I need the string to be replaced even if the letters case don't match (FLY,Fly.flY, etc..) 2- I want the string to be replaced if there is an extra space between two words ( I love this game, i love this   game, etc...)  
1 answers

Maybe share your needle and haystack, but you could take the needle and do two regexReplaceAll actions, first to replace one or more spaces (regex: \s+) in your needle with the regex string \s+ and then do the needle replacement in the haystack in the second. Prepend with (?i) to make it case insensitive. Your needle should then look like: