For a field name
I have several regexps that made some change to field if it matches.
Right now here is what I'm doing in psuedocode:
if (name matches regexp1)
make change1 to name
elsif (name matches regexp2)
make change2 to name
elsif (name matches regexp3)
make change3 to name
I have over 20 of such things to check. Is there a better way to code this?