Help with regular expression please

Discussion in 'HTML' started by KiwiBrian, Jan 1, 2005.

  1. KiwiBrian

    KiwiBrian Guest

    I wish to delete a comment that has been inserted into a large number of
    html files.
    Every example has the normal leading and trailing comment characters and the
    first word in the text string is the same in every example and does not
    occur in other comments.
    So far so good.
    But the rest of the text characters refer to a date and time that can vary,
    and the html filename, which of course is different in every case.
    As I am not a programmer I am having trouble understanding the explanation
    given in the help for the Search and Replace programs that I have.
    Is there a standard method for defining the following simplified example:-
    <!-- Rhubarb (a variable text string) -->
    that is likely to be what my S and R programs might be looking for, or is
    every program different?

    I hope that my description is unambiguous.
    TIA
    Brian Tozer
     
    KiwiBrian, Jan 1, 2005
    #1
    1. Advertising

  2. KiwiBrian

    C A Upsdell Guest

    KiwiBrian wrote:
    > I wish to delete a comment that has been inserted into a large number of
    > html files.
    > Every example has the normal leading and trailing comment characters and the
    > first word in the text string is the same in every example and does not
    > occur in other comments.
    > So far so good.
    > But the rest of the text characters refer to a date and time that can vary,
    > and the html filename, which of course is different in every case.
    > As I am not a programmer I am having trouble understanding the explanation
    > given in the help for the Search and Replace programs that I have.
    > Is there a standard method for defining the following simplified example:-
    > <!-- Rhubarb (a variable text string) -->
    > that is likely to be what my S and R programs might be looking for, or is
    > every program different?
    >
    > I hope that my description is unambiguous.
    > TIA
    > Brian Tozer


    Something like:

    \<!-- Rhubarb.*--\>

    (the '\' characters are to escape the '<' and '>' characters, which
    often have special meanings in regular expressions.)
     
    C A Upsdell, Jan 1, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. VSK
    Replies:
    2
    Views:
    2,349
  2. dotnetprogram

    Regular Expression help please...

    dotnetprogram, Dec 17, 2003, in forum: ASP .Net
    Replies:
    6
    Views:
    2,073
    Rajesh.V
    Dec 17, 2003
  3. Replies:
    3
    Views:
    348
  4. Replies:
    2
    Views:
    390
    =?Utf-8?B?R3VmZmE=?=
    Apr 21, 2006
  5. KK
    Replies:
    2
    Views:
    664
    Big Brian
    Oct 14, 2003
Loading...

Share This Page