streng (@streng)

Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

  • streng
    Participant

    @streng

    Ok i find a solution i just change flag /i for flag /s

    $content = preg_replace("/<code>.+?<\/code>/S", "", $content);

    But i have a question it is correct solution? No performace issue ?


    streng
    Participant

    @streng

    Thanks, but it work only if text between code is on one row. If someune post log test separated by rows, then didnt work properly.
    Any idea how to fix ?

Viewing 2 replies - 1 through 2 (of 2 total)