Grep expression to convert written out numbers to actual numbers
Hi all!
I'm working on a cookbook and need to search the ingredients sections, search for the first word and if it's written out, like twelve, convert it to the number 12. I'm adding the expression to the FindChangeList.txt file so that I can use the FindChangeByList.jsx script.
Right now, I'm at:
grep {findWhat:"^(Twelve)", appliedParagraphStyle:"ingredients"} {changeTo:"12"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}
Do I need to copy and paste that line for every number? Should I made a csv and do a find a replace based off that? Is there any better way to tackle this?
