Remove content between tags

Discussion in 'ASP General' started by Aaron Fleming, Mar 15, 2005.

  1. How can I remove the content in between tags?

    I have a page that has several custom tags:
    <!--tag:1-->
    Content 1
    <!--/tag:1-->
    <br>
    <!--tag:2-->
    Content 2
    <!--/tag:2-->
    <br>
    <!--tag:3-->
    Content 3
    <!--/tag:3-->

    If I only wanted to see the contents of tag 2 for example, how could I
    strip out 1 and 3?
    Aaron Fleming, Mar 15, 2005
    #1
    1. Advertising

  2. Aaron  Fleming

    McKirahan Guest

    "Aaron Fleming" <> wrote in message
    news:...
    > How can I remove the content in between tags?
    >
    > I have a page that has several custom tags:
    > <!--tag:1-->
    > Content 1
    > <!--/tag:1-->
    > <br>
    > <!--tag:2-->
    > Content 2
    > <!--/tag:2-->
    > <br>
    > <!--tag:3-->
    > Content 3
    > <!--/tag:3-->
    >
    > If I only wanted to see the contents of tag 2 for example, how could I
    > strip out 1 and 3?
    >


    See answer to the same question by "j1c" or did you multi-post?
    McKirahan, Mar 15, 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. Allan Ebdrup
    Replies:
    0
    Views:
    2,701
    Allan Ebdrup
    Jan 26, 2006
  2. Jarry
    Replies:
    2
    Views:
    502
    Andy Dingley
    Aug 29, 2006
  3. mcnewsxp
    Replies:
    6
    Views:
    1,340
    dorayme
    Nov 25, 2010
  4. j1c

    remove the content in between tags

    j1c, Mar 15, 2005, in forum: ASP General
    Replies:
    10
    Views:
    302
  5. replacing tags between tags

    , Sep 18, 2005, in forum: Perl Misc
    Replies:
    9
    Views:
    118
    J├╝rgen Exner
    Sep 19, 2005
Loading...

Share This Page