Hi,
I found a script that uses wwws and https as part of a pattern match, but https and wwws is not listed anywhere in the list of terms available for use in the syntax page listed at php.net or pcre.org. What other terms are useable in pcre for pattern matching that is not listed on the syntax page? How is https and wwws defined and used? Why is https used as opposed to http? From what I can see the pcre engine should not be able to recognize any urls by using https, but it does.
the following is an example, not that it is really needed.
PHP Code:$text=preg_replace('/(https?:\\/\\/[-_.\\/\w\d!&%#?+\\,\\\\\'=:;@~]+)/i', '<a href="$1">$1</a>', $text);



Reply With Quote



Bookmarks