50 users online (0 members and 50 guests)  

Thread: regExp


  Results 1 to 2 of 2
  1. #1
    Aminalaizer's Avatar
    New User

    Status
    Offline
    Join Date
    Oct 2003
    Posts
    16

    regExp

    Sorry about my english,
    english isn'y my mother language.

    Hello, I have this var:
    "<a>heag</a>No in a tag<a>sdsh</a>"

    How can I delete all that between "<a>" to "</a>".

    I want a function that get a var and delete all that between "<a>" to "</a>":

    example,

    <a></a>No in a tag<a></a>

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    Hi,

    regexp I am still weak on, but try -

    Code:
    /<\/a>.*?<a>/is
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread