Ticket #7486 (new enhancement)

Opened 4 months ago

When looking for rewrite rules matches, change preg_match start/end character from ! to % or #

Reported by: aesqe Assigned to: anonymous
Priority: lowest Milestone: 2.9
Component: General Version:
Severity: trivial Keywords: regexp rewrite rules
Cc:

Description

In classes.php, around line 100 (lines 104 and 105 in WP 2.6, class WP) when trying to find rewrite rule matches, ! (exclamation mark) is used as start/end for regexp in the preg_match function. Should be changed to % or # to enable use of, for example, (?!) in rules.