Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Help with regular expression please

Reply
Thread Tools

Help with regular expression please

 
 
KiwiBrian
Guest
Posts: n/a
 
      01-01-2005
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


 
Reply With Quote
 
 
 
 
C A Upsdell
Guest
Posts: n/a
 
      01-01-2005
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.)

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Seek xpath expression where an attribute name is a regular expression GIMME XML 3 12-29-2008 03:11 PM
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C++ 42 11-04-2008 12:39 PM
C/C++ language proposal: Change the 'case expression' from "integral constant-expression" to "integral expression" Adem C Programming 45 11-04-2008 12:39 PM
Matching abitrary expression in a regular expression =?iso-8859-1?B?bW9vcJk=?= Java 8 12-02-2005 12:51 AM
Dynamically changing the regular expression of Regular Expression validator VSK ASP .Net 2 08-24-2003 02:47 PM



Advertisments