I need to find and replace a ton of code that was written and my text editor works with regex expressions but I dont know how to make them. How would I create a regex expression to do this:
from:
if ($q->param('wordOne[]') =~ m/wordTwo/)
to :
if (grep /wordTwo/, $q->param('wordOne[]')) { ... }
wordOne/Two can be any word that is where my problem is and im not sure how to format my regex for a find and then replace to my format