homepage Welcome to WebmasterWorld Guest from 54.237.98.229
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

This 32 message thread spans 2 pages: < < 32 ( 1 [2]     
regex efficiency with the ambiguous, greedy and promiscuous .*
Dideved



 
Msg#: 4566749 posted 11:33 am on Apr 19, 2013 (gmt 0)


System: The following 10 messages were cut out of thread at: http://www.webmasterworld.com/apache/4565193.htm [webmasterworld.com] by phranque - 5:43 pm on Apr 20, 2013 (utc -7)


> Rules with (.*) at the beginning or the middle of a pattern can be
> optimised a LOT.

A lot? The difference is less than a millisecond. It's less than even a microsecond. It's a textbook micro-optimization. When you tell people that this will make a big difference, you're blatantly misinforming them.

 

g1smd

WebmasterWorld Senior Member g1smd us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 4566749 posted 10:10 am on Jun 30, 2013 (gmt 0)

I'm done arguing here.

phranque

WebmasterWorld Administrator phranque us a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



 
Msg#: 4566749 posted 11:56 am on Jun 30, 2013 (gmt 0)

.* means match any character zero or more times.
technical or not, how much more ambiguous can you possibly get?
end of that discussion.


this is how ibm's rational functional testing team (as "technical" as it gets) describes .*:

The .* pattern is thus the most promiscuous pattern, matching nearly anything including nothing.

(http://books.google.com/books?id=4NSbIuobgEMC&pg=PT489 [books.google.com]

This 32 message thread spans 2 pages: < < 32 ( 1 [2]
Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved