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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: ryan at ryanflynn dot com
New email:
PHP Version: OS:

 

 [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: Sat Apr 27 09:01:29 2024 UTC