Re: [regexp] Multi-level pattern matching

2006-04-21 Thread Adam W
Chad Perrin wrote: Y'know, I was playing around with this to see if I could come up with a reasonably elegant solution, and I noticed a problem: Your code doesn't seem to actually work. Am I missing something? I went back to check, and it seems to only be working in very specific cases. For

Re: [regexp] Multi-level pattern matching

2006-04-21 Thread Chad Perrin
On Fri, Apr 21, 2006 at 02:54:29PM -0700, Adam W wrote: > > The following does about 95% of the job: > > if (/<(.*?)>/g && !/<\!/g) { # if it's an HTML and not a > #s/^(.*?)"(.*?)"/\L$1\E"$2"/g; > } Y'know, I was playing around with thi