Re: [PHP] Simple RegEx question

2007-12-31 Thread Richard Lynch
Find Weitz's "The Regex Coach" (Linux and Windows) and install it and play around. You'll learn more in one day from the pretty color syntax highlighting than reading the perl books/pages for months. On Mon, December 24, 2007 9:34 pm, M5 wrote: > I'm learning regular expressions, and trying to fi

Re: [PHP] Simple RegEx question

2007-12-25 Thread Jochem Maas
M5 schreef: > I'm learning regular expressions, and trying to figure out what's > possible and what's not. pretty much anything as far as string parsing goes. > Any ideas of how to create a preg_match > expression to parse following three lines: yes. given your intention to learn regexps why no

Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:59 PM, Casey <[EMAIL PROTECTED]> wrote: On Dec 24, 2007, at 7:34 PM, M5 <[EMAIL PROTECTED]> wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lin

Re: [PHP] Simple RegEx question

2007-12-24 Thread Casey
On Dec 24, 2007, at 7:34 PM, M5 <[EMAIL PROTECTED]> wrote: I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines: Calgary, AB T2A6C1 Toronto, ON T4M 0B0 Saint John, N

[PHP] Simple RegEx question

2007-12-24 Thread M5
I'm learning regular expressions, and trying to figure out what's possible and what's not. Any ideas of how to create a preg_match expression to parse following three lines: Calgary, AB T2A6C1 Toronto, ON T4M 0B0 Saint John, NBE2L 4L1 ...such that it splits each line into City, Pro