[PHP] Re: Regular expression question

2005-08-11 Thread TalkativeDoggy
How about using the lower() function? Leon Vismer wrote: Hi I would like to convert from one naming convention within a sql statement to another. I have the following, $str = "insert into userComment (userID, userName, userSurname) values (0, 'Leon', 'Vismer')"; $match = array( "/([a-z]

[PHP] Re: Regular expression question

2004-05-27 Thread Jason Barnett
This should work: ^\\ # Don't match if a backslash precedes \[ # Open bracket ([^\]]+?) # Text, including whitespace \] # Close bracket By the way, using a tool called The Regex Coach I solved your problem in about 10 seconds. For those having regex problems you might

[PHP] Re: Regular expression question

2002-08-30 Thread Philip Hallstrom
$str = "jeD1GLal"; $str = ereg_replace("[1LIO0lio]", "", $str); something like that... On Fri, 30 Aug 2002, Jeff Lewis wrote: > Is there a regular expression that will remove 1, L, I, O, 0 and the > lowercase equivilants from a varialbe? > > I am not horribly well versed in regular expressions.