php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #12981 request: bare regexp and =~ operator
Submitted: 2001-08-27 12:28 UTC Modified: 2002-04-28 19:48 UTC
From: ryan at ryanflynn dot com Assigned:
Status: Closed Package: Feature/Change Request
PHP Version: 4.0.6 OS: Win2k
Private report: No CVE-ID: None
 [2001-08-27 12:28 UTC] ryan at ryanflynn dot com
Hey guys. I love php, keep up the good work!

Anyhow, I've been playing with other scripting languages as well as php to keep up my skills and I've come to realize how much a pain in the ass regexp is in php. having to use:

preg_match_all("/\s+\d+.\d+/", "php version 4.0.6", $matches);

instead of:

"php version 4.0.6" =~ /\s\d+.\d+\/;

is just a real pain. I think bare regexps and an =~ operator would really kick ass. I understand that the functions may be a simpler way for people to ease into regexps, but power users want the flexibility that languages like perl and ruby (among others) have. 

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-28 19:48 UTC] jimw@php.net
this isn't going to happen.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 08:01:28 2024 UTC