I am looking for replacement rules that will accomplish the following:
- If the variable name of the function contains "p", append "aa" to the function name
- If the variable name of the function does not contain "p", append "bb" to the function name
Here are some examples
myfun1[x1] ==> myfun1bb[x1]
myfun2[x1p] ==> myfun2aa[x1p]
myfun3[x4p] ==> myfun4aa[x4p]
Any help is greatly appreciated!