Regular expressions help..

by 7 replies
8
Hello

i have a bunch of PLR articles (about 200k..) that are all formatted as follows

Title:
(text here)

Word Count:
(number here)

Summary:
(text here sometimes going over one or more lines)

Keywords:
(text here again sometimes over more than one line)

Article Body:
(Finally My Article Is Here!)

Now I have found a couple of programs that can mass replace text in .txt files , BUT i cannot figure how to tell the program to get rid of the word 'Title' , keep the title itself and get rid of everything else all teh way to the word 'Body:'

The info says that they can achieve this by using 'regular expressions' but I have no clue as to what they are or what exactly should be used in my case? Any help would be most appreciate or also any suggestions of software that can do it in a user friendly manner without requiring knowledge of coding?

Thanks in advance

Marco
#programming #expressions #regular
  • Hi Marco, regular expressions is a pretty advanced topic . . . what program are you using? Each program treats regular expressions differently.

    Generally, you want to identify unique markers - if "Title" is at the beginning of a line you would search for a beginning of line character, the word Title, and the space (or colon or whatever) after. The program you are using should tell you in Help what the regex codes are to use for these identifiers. Without knowing more I can't be more specific. I hope this helps.

    Michele
    • [2] replies
    • Thank You Michele

      unfortunately the program : Replace Text :: ecobyte :: software with a cause only states :

      Which is exactly what I need (it seems) but then I am stuck at not knowing what the regular expression is that would perform what I need..;o(

      Marco
    • Thank you

      there is unfortunately no help with the program, it just says 'use regex' as if there is only one way to use it(them)...
      Isn't there a way to just say

      if you find [this text(maybe with a wildcard option here)]replace it with [this other text]?

      Thanks agani for helping!

      Marco
      • [1] reply
  • hey there,

    is it possible to do what you want using the "mail merge" functionality of ms word?
  • Marco,
    As long as the articles really are all formatted like that, I can write up a quick little windows program that can do what you are looking for. No charge.
    • [1] reply

Next Topics on Trending Feed