Jump to content

joshabts

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

joshabts's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I think this will solve my problem, but if I want to capture these two lines at two different times I can use your above string and just remove the second part with the (?: <stuff here> | <other here>) and just use one or the other right? I am trying to capture just the item sold line with the time, user, item, and value, the other line can just be ignored for now.
  2. Sorry for not clarifying, yes the POST variable could contain additional lines similar to that, but they also will contain other lines such as it may have lines of the following: Tue Jan 13 22:04:05 2009 :: Clan 120 (User): Deposit of 102,964 gold pieces. I have however got the capture to work with the above line and another preg_match_all, its just the line I submitted that won't match. And I would also like to capture the timestamp at the beginning of the line. Not sure if it would make a difference but the item name could also contain a ' and ". That was why I was thinking the (.*) would capture those fields, but apparently I wasn't accounting for something right. Thanks for the help!
  3. Hello all, Hopefully someone can point out where I am hitting a snag with this expression. This is the input line: Sun Jan 11 22:45:45 2009 :: A young shopkeeper reports: 'User just purchased 'an item' for 1,000 gp.' This is my matching line: preg_match_all("/(.*) :: A young shopkeeper reports: '(.*) just purchased '(.*)' for (.*) gp\.'/", $_POST['theLog'], $matchedItemsSold); The input line is being passed with other input lines in a textarea named "theLog" and when I run this, $matchedItemsSold is just an empty array. So for some reason that line isn't matching. Any ideas? Thanks in advance!
  4. Okay this may be a really easy question for you all, but here it goes anyway, I don't have any idea how to go about this. I have a virtual host setup on an IP that is name based.  ex1.domain.com for example. However I have an actual site that is setup already that is https://www.domain.com:81 I would like people to be able to type in http://ex1.domain.com and have the https://www.domain.com:81 page load. How do I go about doing this with Apache2? Thanks, Josh Abts
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.