It still isn't working. Do I need to add something like changeTo: to it? Here is my full FindChangeBy list:
grep {findWhat:"\d\K(th|st|nd|rd)\>|[\w\s]\K(~r)"} {position:Position.SUPERSCRIPT} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
grep {findWhat:" ([\u]{2}) +(\d{5})"} {changeTo:" $1~>$2"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
grep {findWhat:" (([\u\l]) (Jr|Jr.|Sr|Sr.|Esq|Esq.)( |\n|\r|\t|~y)"} {changeTo:"$1, $2$3"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
What would be the reason that this isn't working? My GREP works fine for the layout, but it seems I don't know enough about code yet to troubleshoot
It seems you are missing the escaping of the special characters. Change \ with \\ so the first grep string should be like following
grep {findWhat:"\\d\\K(th|st|nd|rd)\\>|[\\w\\s]\\K(~r)"} {position:Position.SUPERSCRIPT} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
-Manan