Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Erik Price
On Wednesday, July 3, 2002, at 12:00 PM, Martin Clifford wrote: Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number, but it has to follow a letter? Or would you just do [a-zA-Z][0-9] to do that? That bracketed construction is called a character class.

Re: [PHP] Another Regex Question (General)

2002-07-03 Thread Analysis Solutions
On Wed, Jul 03, 2002 at 12:00:50PM -0400, Martin Clifford wrote: Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can be a number, but it has to follow a letter? Or would you just do [a-zA-Z][0-9] to do that? Your second question/statement is correct. --Dan --

RE: [PHP] another REGEX question

2001-08-02 Thread Jack Dempsey
Try $str = preg_replace(p.*?, ,$str); jack -Original Message- From: Julian Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 5:16 PM To: [EMAIL PROTECTED] Subject: [PHP] another REGEX question I have a string can look like either of the following: psome stuff/p p

Re: [PHP] another REGEX question

2001-08-02 Thread James, Yz
Hi Julian, personally, I'd take out both tags, using something like: $str = preg_replace(/\/?p.*?/i, , $str); Which gets rid of: p p align=whatever /p Or any case insensitive matches. That's probably just me though ;) James. Julian Simpson [EMAIL PROTECTED] wrote in message

RE: [PHP] another REGEX question

2001-08-02 Thread Jack Dempsey
you have the s flag enabled, the . will not match a newline, while the negation will... Just a lil extra info jack -Original Message- From: Julian Simpson [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 02, 2001 5:42 PM To: Steve Edberg; [EMAIL PROTECTED] Subject: RE: [PHP] another

RE: [PHP] another REGEX question

2001-08-02 Thread Julian Simpson
hahah that had two interesting effects the first was that it left the and the second was that it turned off all the highlighting in my editor due to the ? any idea how to include the braces in the match and perhaps not using the ? string for the sake of convenience :) Julian 8/2/01