SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Evangelist
    Join Date
    Oct 2000
    Posts
    430
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    I dabbling with a bit of code and was wondering if there is an alternative to the expression: (.*) which could be used in this line of code:

    $grab = eregi("$GrabStart(.*)$GrabEnd", $rf, $printing);

    I understand (.*) this will take everything between $GrabStart and $GradEnd

    QU - is there an alternative expression which will grab everything between and INCLUDING $Grabstart and $GrabEnd?

    Would this work???? "($GrabStart(.*)$GrabEnd)",

    <Edited by ChilliBoy on 12-02-2000 at 08:54 AM>

  2. #2
    SitePoint Enthusiast JohnM's Avatar
    Join Date
    Dec 2000
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try
    Code:
    $grab = eregi("($GrabStart.*$GrabEnd)", $rf, $printing);


Bookmarks

Posting Permissions

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