Parsing and text replacing for 2 different article spinners
I want to create spinnable articles for use in Power Article Rewriter(PAR) and Article marketing Automation (AMA).
PAR uses the following brackets Level 1 - {level 1 phrase to spin|Spin this level 1 phrase}
PAR level 2 - {level 1 phrase with {level2words|differentlevel2words} to spin|Spin this level 1 phrase with {level2words|differentlevel2words } }
AMA uses {} brackets and ~ to separate level 1 spinning alternatives(phrases/sentences/paragraphs), however for level 2 it uses [] and |
So I can't just find and replace | with ~ I need to tell the script (Winautomation) to leave the | when it is inside a nested pair of brackets and replace the nested brackets with [] instead of {}
So ideally I get an article ready to spin in PAR - spin the versions I want then take the source article in PAR spinning format and run 'convert PAR to AMA script'
I can't find much on this on the web with regard to Winautomation and I've downloaded MS log parser 2.2 as well but I'm still a bit new to scripting/programming so finding it a bit tricky.
-
CodeX -
Thanks
{{ DiscussionBoard.errors[982186].message }} -