Re: Regular expression question

From: Date: Thu, 11 Aug 2005 14:11:49 +0000
Subject: Re: Regular expression question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220427@lists.php.net to get a copy of this message
Hi > Just a quick note; why dont' you search on "user" since it's the constant > and replace 'user[A-Z]' with 'user_[a-z]' or in the case of userID > 'user[A-Z]{2}' This is part of my problem user will not always be constant, I basically want to be able to change between two naming conventions. Example: userID becomes user_id clientID becomes client_id tableName becomes table_name anotherTableName becomes another_table_name etc. Thanks -- Leon

« previous php.general (#220427) next »