Jump to content

basher400

New Members
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

basher400's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. hi I have strings that contain the url of an yahoo group and it may appear in any of the following patterns: I need a regex that can always capture the "batmaras" (I can't guess that part, I need to extract it using regex) and give me a result as follows: it.groups.yahoo.com/group/batmaras I want to remove anything after the "batmaras" part. this is what I tried and is not working for me: (it\.groups\.yahoo\.com\/group\/.*?)\/?
  2. hi I would like to use the htmlspecialchars but I want to exclude the & character e.g: I don't want it to change the "&" to "&" is there a way to do ? I couldn't find an answer here: http://php.net/manual/en/function.htmlspecialchars.php
  3. Hi I have this time stamp: 20051107065122 I'm trying to parse it into something like this: Nov 07 2005, 06:51:22 I've tried the following: [code] echo date("M d Y H:i:s", "20051107065122" ); echo gmdate("M d Y H:i:s", "20051107065122" )); [/code] either of the above give me: Jan 19 2038 03:14:07 what am I doing wrong?[code]
×
×
  • 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.