having a problem with preg_match_all

Posted on 2009-02-14
Last Modified: 2012-05-06
o.k i give this command a text to handle and search for the message and i have many text in a loop, so sometimes this function just stops and all the php stops and i get that my page is finish loading but i still have alout more text to handdle and if i give it the last text that it handled i get the same thing agean

please help
preg_match_all('%<!-- message -->((?:.|\s)*?)<!-- / message -->{5}%i',  $page, $inside1, PREG_SET_ORDER);

Open in new window

Question by:mgtm3
    1 Comment
    LVL 107

    Accepted Solution

    Show us some sample input and the desired output, please.  Thanks, ~Ray

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
    Both Easy and Powerful How easy is PHP? (  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
    The viewer will learn how to count occurrences of each item in an array.
    The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now