what is the correct regex modifier to get whole haystack treated as one line?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • lawrence

    what is the correct regex modifier to get whole haystack treated as one line?

    what is the right modifier to get $string treated as one line in regex?


    $string = <<<EOD

    <?php

    function smoothTalker() {
    // code here
    }

    ?>

    EOD;
  • Jochen Daum

    #2
    Re: what is the correct regex modifier to get whole haystack treated as one line?

    Hi Lawrence,
    On 17 Mar 2004 21:06:27 -0800, lkrubner@geocit ies.com (lawrence)
    wrote:
    [color=blue]
    >what is the right modifier to get $string treated as one line in regex?
    >[/color]

    its s


    see here:

    PHP is a popular general-purpose scripting language that powers everything from your blog to the most popular websites in the world.


    HTH, Jochen[color=blue]
    >
    >$string = <<<EOD
    >
    ><?php
    >
    >function smoothTalker() {
    >// code here
    >}
    >
    >?>
    >
    >EOD;[/color]

    --
    Jochen Daum - Cabletalk Group Ltd.
    PHP DB Edit Toolkit -- PHP scripts for building
    database editing interfaces.
    Download PHP DB Edit Toolkit for free. PHP DB Edit Toolkit is a set of PHP classes makes the generation of database edit interfaces easier and faster. The main class builds tabular and form views based on a data dictionary and takes over handling of insert/update/delete and user input.

    Comment

    Working...