RE: [PHP] Regex

2009-03-27 Thread Jesse.Hazen
Jochem, Thanks, but this regex did not seem to work for me. At least, not on Windows. I will not be able to test on linux for a few hours. I spoke too soon yesterday, too. Control-Z is a problem on Windows, and not on Linux. However, on linux, control-D is a problem. Thanks, Jesse

RE: [PHP] Regex

2009-03-27 Thread Jesse.Hazen
Bruce, Sure thing. So basically what I am trying to accomplish is when this script runs, a menu is displayed to the user, it looks somewhat like this: Welcome To continue, please select your game mode. [Mode] [Description] A.) Mode A B.) Mode B

RE: [PHP] Regex

2009-03-27 Thread Jesse.Hazen
Jochem, To be more specific, the error I get when using this regex is No ending delimiter '/' found Thanks, Jesse Hazen -Original Message- From: Jochem Maas [mailto:joc...@iamjochem.com] Sent: Thursday, March 26, 2009 11:45 PM To: Hazen, Jesse, arvato digital services llc Cc:

[PHP] Regex

2009-03-26 Thread Jesse.Hazen
Hi, Brand new to regex. So I have a cli which runs a regex on users input, to make sure that only 0-9 and A-Z are accepted. It should strip everything else. My problem is that when you press control-Z (on Windows; I have not yet tested this on linux, and I will, but I would like this to be

RE: [PHP] Regex

2009-03-26 Thread Jesse.Hazen
Nitsan, Thank you very much for the input. However, I just gave this a try and it still did not strip the control-Z. Therefore, it is still hitting my loop later and looping infinitely. I am sure I could mend that by working something into that loop, but there are several loops I would need to

RE: [PHP] Regex

2009-03-26 Thread Jesse.Hazen
Nitsan, Thanks again. Sad to say, same result. The second option looped an error: Warning: preg_replace(): Compilation failed: nothing to repeat at offset 17 Thanks, Jesse Hazen From: nit...@binnun.co.il [mailto:nit...@binnun.co.il] On

RE: [PHP] Regex

2009-03-26 Thread Jesse.Hazen
Nitsan, Not a problem, thanks for the help. So, it is printed as ^Z. However, I created a little test.php script to accept input and print it back to me. So, I used control z as my test, and it simply printed a line, and that's all. So, then I input control z, and then had it print a letter

RE: [PHP] Regex

2009-03-26 Thread Jesse.Hazen
Nistan, Just got home, tested on linux. No problem on linux, the control-z just exits. I may just go ahead and post my issue to the PHP windows list to see if anything comes up, and not worry if it doesnt. I appreciate the help very much Thanks, Jesse -Original Message- From:

RE: [PHP] Frameworks / obstinate?

2009-03-23 Thread Jesse.Hazen
Not to mention the Object Oriented nature of PHP. This looks like a pretty cool idea, but JS OO cannot compare to PHP OO programming. Thanks, Jesse Hazen -Original Message- From: Stuart [mailto:stut...@gmail.com] Sent: Monday, March 23, 2009 7:49 AM To: tedd Cc:

[PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
Hi, I am working on building a PHP-CLI 'game' for converting binary/hex/decimal, to better your speed at converting between base number systems. I started on the game class, and created a little menu with user input for different game modes. If the user inputs invalid data, the script is

RE: [PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
Rob, Thanks for the quick reply. I did try that before, but now my issue is that the if-else section does not recognize the data as being valid. So, I changed it to fgets(), and reran, this time using valid data. The initial problem is corrected (it only gives the error once), but now it does not

RE: [PHP] PHP-CLI issue

2009-03-18 Thread Jesse.Hazen
Rob, Works like a charm! Much appreciated. Thanks, Jesse Hazen -Original Message- From: Robert Cummings [mailto:rob...@interjinn.com] Sent: Wednesday, March 18, 2009 7:24 AM To: Hazen, Jesse, arvato digital services llc Cc: php-general@lists.php.net Subject: RE: [PHP] PHP-CLI