Parsing and text replacing for 2 different article spinners

1 replies
Can anyone help out with a parsing question I have? Here is the scenario

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.
#article #parsing #replacing #spinners #text
  • Profile picture of the author CodeX
    I came across this post through Google search and I need the exact same thing. Did you find a solution to your problem?
    {{ DiscussionBoard.errors[982186].message }}

Trending Topics