Re: regex brain-toot
| From: | John Nichel | Date: | Mon, 19 Jun 2006 19:13:41 +0000 |
| Subject: | Re: regex brain-toot | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-238315@lists.php.net to get a copy of this message | ||
Jay Blanchard wrote:
[snip] \(([0-9]*)\) [/snip] I had done this before and still get the parenthesis... ereg("\(([0-9]*)\)", "Upper Voltage (124.1)", $regs);Ahhhh....not PCRE. Can't help you there, as I've never used the ereg functions. However... preg_match ( "/\((\d{1,}.*?)\)/", "Upper Voltage (124.1)", $regs ); -- John C. Nichel IV Programmer/System Admin (ÜberGeek) Dot Com Holdings of Buffalo 716.856.9675 jnichel@dotcomholdingsofbuffalo.com