RE: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
ts.php.net Subject: Re: [PHP] Can someone help me build a regular expression? Give this a shot: ^[0-9]{2,3}\.[0-9]$ Returns regex that begins with 2-3 digits, followed by a period, and ends with one digit. jason sweeney jason.designshift.com [EMAIL PROTECTED] wrote: > Hi All, > > I&#

Re: [PHP] Can someone help me build a regular expression?

2005-05-02 Thread Jason Sweeney
Give this a shot: ^[0-9]{2,3}\.[0-9]$ Returns regex that begins with 2-3 digits, followed by a period, and ends with one digit. jason sweeney jason.designshift.com [EMAIL PROTECTED] wrote: Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers exist

[PHP] Can someone help me build a regular expression?

2005-05-02 Thread mwestern
Hi All, I've sucessfully got a JavaScript validating some text boxes to make sure that only numbers exist.I cheated and downloaded a regular expression someon else had used and that works nicely. I wish to validate the text box in the format of: xXX.X With the upper case Xs being a requ

[PHP] Can someone help me with this code please?

2003-01-15 Thread Phil Powell
Following is the code that will do a remote scrape of http://www3.brinkster.com/soa/val/profile/display.asp (which sometimes goes down), however, it should time out and produce an error after 5 seconds; instead, sometimes, the entire page (http://valsignalandet.com) which includes this script be

RE: [PHP] can someone help?

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
loper www.PHPBeginner.com // where PHP Begins -Original Message- From: Kirk Babb [mailto:[EMAIL PROTECTED]] Sent: Wednesday, April 24, 2002 5:35 PM To: [EMAIL PROTECTED] Subject: [PHP] can someone help? First, here's my code: "; ?> Works great on the first line, but I'

Re: [PHP] can someone help?

2002-04-24 Thread Miguel Cruz
You're just trying to print a list of words, one per line? print join('', explode(' ', 'Why am I trying?')); or, broken into steps in case you want to deal more with the array: $ar = explode(' ', 'Why am I trying?'); foreach ($ar as $word) { print "$word"; } I didn't look that ca

[PHP] can someone help?

2002-04-24 Thread Kirk Babb
First, here's my code: "; ?> Works great on the first line, but I'm stuck on printing the remaining part of the array using some sort of loop. I've tried a few things but get endless loops. In the end I'd like to make this a function and just give it the string and the container length as argume

Re: [PHP] Can someone help me parse XML? - Challenge

2001-09-18 Thread Christian Reiniger
On Monday 17 September 2001 16:42, Jeff Lewis wrote: > I have an XML file that I need to parse. I had the base of a perl > script written but wasn't completely functioning and was hoping someone > could give me a hand with making it parse and do what it's supposed to > but in PHP. The perl file

[PHP] Can someone help me parse XML? - Challenge

2001-09-17 Thread Jeff Lewis
I have an XML file that I need to parse. I had the base of a perl script written but wasn't completely functioning and was hoping someone could give me a hand with making it parse and do what it's supposed to but in PHP. The perl file looked like this: #!/usr/bin/perl use CGI::Carp qw(fatal