Loading ...
Sorry, an error occurred while loading the content.

20749Re: Script help needed for processing a list of download links

Expand Messages
  • diodeom
    Jun 21, 2010
      "netplayground" <netplayground@...> wrote:
      > I'm stumped trying to figure out how to create a script that will take a
      > page of raw text that contains several groupings of text formatted as
      > follows: ( line 1: movie title line 2+ download links for that movie
      > one link per line + blank lines between groupings ) and reformat it so
      > that each line contains the movie title -- five spaces -- and then a
      > download link.

      This should work:

      ^!Jump 1
      ^!Find "^(.++)(?s).+?html(?=\R{2,}|\Z)" RS
      ^!IfError Done
      ^!Set %t%=^$GetReSubStrings$
      ^!Replace "^" >> "^%t%\x20\x20\x20\x20\x20" HARS
      ^!Replace ".++\R" >> "" HRS
      ^!Find "^\R|\Z" RS
      ^!Goto Loop
      ^!Replace "^\R" >> "" WARS
      ^!ClearVariable %t%
    • Show all 10 messages in this topic