Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts

    reading into a string?

    hello,

    how can i grab the text between two tags?

    like
    Code:
    string = "blah blah blah [- url -] www.codingforums.com[/- url -] blah blah blah"
    how can i grab the just the "www.codingforums.com" from that string?

    thanks in advance for your time!

    -angst
    Last edited by angst; 07-20-2004 at 06:27 PM.

  • #2
    Rockstar Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    9,074
    Thanks
    1
    Thanked 328 Times in 324 Posts
    Is it always going to be a URL? If so, you could use a regular expression to do that.
    OracleGuy

  • #3
    Senior Coder angst's Avatar
    Join Date
    Apr 2004
    Location
    Toronto, Ontario
    Posts
    2,114
    Thanks
    15
    Thanked 122 Times in 122 Posts
    i just edited my first post,, just noticed that the url tags were not showing..

    could you show me an example please?

    thanks again for your time!
    ken


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •