[wp-trac] [WordPress Trac] #24225: Improve regular expressions when matching attributes

WordPress Trac noreply at wordpress.org
Fri May 10 22:55:29 UTC 2013


#24225: Improve regular expressions when matching attributes
-------------------------+--------------------
 Reporter:  kovshenin    |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  3.6
Component:  General      |     Version:  trunk
 Severity:  normal       |  Resolution:
 Keywords:  has-patch    |
-------------------------+--------------------

Comment (by markjaquith):

 > it's trickier than I thought - can't use backreferences in character
 classes

 Looks like a negative lookahead might work:

 http://stackoverflow.com/questions/8055727/negating-a-backreference-in-
 regular-expressions

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/24225#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list