Regular expressions help..

7 replies
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
#expressions #regular
  • Profile picture of the author Michele24k
    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
    {{ DiscussionBoard.errors[1833902].message }}
    • Profile picture of the author marcolav
      Originally Posted by Michele24k View Post

      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
      Thank You Michele

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

      Another powerful ability of Replace Text is to make use of regular expression search-replace operations, as well as range search-replace operations.
      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
      {{ DiscussionBoard.errors[1834520].message }}
    • Profile picture of the author marcolav
      Originally Posted by Michele24k View Post

      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
      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
      {{ DiscussionBoard.errors[1857495].message }}
      • Profile picture of the author Michele24k
        Marco,

        Have you made progress? I have not downloaded the software, but I looked at the link you posted - It will take a few passes to accomplish what you want. Send me a sample in a text file and I will play with it.
        {{ DiscussionBoard.errors[1867904].message }}
  • Profile picture of the author imarketstuff
    hey there,

    is it possible to do what you want using the "mail merge" functionality of ms word?
    Signature
    I MARKET STUFF

    {{ DiscussionBoard.errors[1833925].message }}
  • Profile picture of the author KirkMcD
    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.
    {{ DiscussionBoard.errors[1867980].message }}
    • Profile picture of the author AndyBlackSEO
      Originally Posted by KirkMcD View Post

      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.
      Well you can't ask for more than that.
      Signature
      [FREE SEO TOOL] Build 29 Effective, High Authority Backlinks that Will Increase Your Google Rankings in 2020... CLICK HERE ...
      ... Instant backlinks that can get you results within 24-72hrs.
      {{ DiscussionBoard.errors[1871603].message }}

Trending Topics