Results 1 to 5 of 5

Thread: preg_match_all [*resolved*]

Threaded View

  1. #1

    Thread Starter
    <?="Moderator"?> john tindell's Avatar
    Join Date
    Jan 2002
    Location
    Brighton, UK
    Posts
    1,099

    preg_match_all [*resolved*]

    PHP Code:
    preg_match_all('/{loop='.$LoopName.'}^(.*?){\/loop=}/'$this->data,$matches
    ok i am trying to get it to work over multilines and it works if i only have one set of "{loop=name}.....other stuff......{/loop}" tags. When i have two or more it ignores the next "{/loop}" and goes straight to the last tag? does anyone know how i can solve this problem.


    Thanks
    Last edited by john tindell; Aug 28th, 2003 at 03:45 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width