Geeks With Blogs
Eron Wright - All Killer No Filler blog March 2004 Entries
Matching Parenthesis Pairs Using Regular Expressions
It is a known hard problem to match nested parenthesis pairs using regular expressions. Put another way, regular expressions to not typically support counting occurrences. .NET has a little-known RegEx construct for doing just that called the “balancing group definition“: Balancing group definition. Deletes the definition of the previously defined group name2 and stores in group name1 the interval between the previously defined name2 group and the current group. If no group name2 is defined, ......

Posted On Monday, March 29, 2004 12:01 PM

ASP.NET - files handles are kept open for each directory in Request.PhysicalPath
If you are using IHttpHandlers to serve dynamic content, or generating a large directory structure to be served statically, here is some information you should know. We use a custom IHttpHandler to dynamically serve (and cache) images from our database. For simplicity, the handler uses Request.PhysicalPath as the ultimate cache location. That is, a url “~/cache/123/1-Large.... is mapped to “<path to application root>\cache\123\1-Large.... by the handler. If the file ......

Posted On Tuesday, March 2, 2004 4:42 AM

Copyright © Eron Wright | Powered by: GeeksWithBlogs.net