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

RE: [PHP] can someone help?

2002-04-24 Thread Maxim Maletsky \(PHPBeginner.com\)
Hey, I started playing with your code for a while ... And then realized.. What you're trying to do it to reproduce chunk_split() function. Try other work arounds for this. Read the docs, Start from here: www.php.net/chunk_split Sincerely, Maxim Maletsky Founder, Chief Developer www.PHPBeginn

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

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