Announcement

Collapse
No announcement yet.

the regex problem again..

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Simply look for strings starting with "http://", "ftp://", "mailto:", or "www" up untill a non-word character, and make it a link. PCRE uses \W to match non-word characters.

    If the string starts with www, then prepend the string with "http://", otherwise leave the string unmodified.

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...
    X