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

Re: how to substitute this kind of pattern?

Expand Messages
  • dengping zhu
    Hi, Scott and Brett, it works. Thanks a lot!
    Message 1 of 4 , May 1 11:30 AM
    • 0 Attachment
      Hi, Scott and Brett, it works.
      Thanks a lot!




      On Wed, 1 May 2002, Brett Pershing Stahlman wrote:

      > Try this command:
      >
      > %s/<span class ="info..">/<h2>/g
      >
      > You could specify digit followed by lower case letter after the info if you
      > like by replacing .. in the pattern above with [0-9][a-z].
      >
      > Hope this helps.
      > Brett S.
      >
      > ----- Original Message -----
      > From: dengping zhu <zhudp@...>
      > To: <vim@...>
      > Sent: Wednesday, May 01, 2002 1:19 PM
      > Subject: how to substitute this kind of pattern?
      >
      >
      > > In one html file, I have some sentences as follows:
      > >
      > >
      > > <span class ="info1a">
      > > <span class ="info2a">
      > > <span class ="info1b">
      > > <span class ="info2b">
      > > ...
      > >
      > > I want to replace all these sentences into '<h2>'.
      > > Can somebody tell me how to do it?
      > >
      > > Thanks for your help!
      > >
      > > Dengping
      > >
      > >
      > >
      >
      >
      >
    Your message has been successfully submitted and would be delivered to recipients shortly.