Web Analytics Made Easy -
StatCounter help with this preg match? - CodingForum

Announcement

Collapse
No announcement yet.

help with this preg match?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • help with this preg match?

    I'm trying to work on this basic preg_match that gets the </a> tag. For some reason, it doesn't work.



    preg_match('/(<\/a>)/i',$string,$match);

  • #2
    What should it do?
    I'm not sure if this was any help, but I hope it didn't make you stupider.

    Experience is something you get just after you really need it.
    PHP Installation Guide Feedback welcome.

    Comment


    • #3
      I'm trying to get text that's delimited by the end of </a> and the start of a table <table>

      The stuff above was to try to get it to recognize the </a>, but it seems that this doesn't even work!

      preg_match('/(<\/a>([a-zA-Z\s]{1,})<table>/')

      My plan was for this to be the preg_match, but it doesn't seem to work.

      Comment

      Working...
      X