[wp-trac] Re: [WordPress Trac] #2875: https enclosures fail on
WordPress Trac
wp-trac at lists.automattic.com
Thu Jun 29 14:19:07 GMT 2006
#2875: https enclosures fail on post.
-----------------------+----------------------------------------------------
Reporter: nigelkane | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone:
Component: General | Version: 2.0.2
Severity: major | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by markjaquith):
{{{
preg_match_all("{\b https? : [$any] +? (?= [$punc] * [^$any] | $)}x",
$content, $post_links_temp2);
}}}
In regex, the question mark makes the previous item optional... so https?
matches http or https
--
Ticket URL: <http://trac.wordpress.org/ticket/2875>
WordPress Trac <http://wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list