Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Lemon

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Lemon's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Well, I give up trying to get my last rule in place; it was for if you have a slash immediately after a dot. Whatever, it's perfect otherwise: ``` text.replace(/((https?|ftp):\/\/(([^.\/\s#?]+?)(?=\.)([^\s]+)))/g, '[$3]($1)') ``` http://regexr.com/3b9ta Longer than Marsh's, but it covers more rules; less matches made on invalid URLs Not sure what my score is, since I can't figure out how Marsh got his score from his own scoring system…
  2. There's a mass skype chat?
  3. Sure, "stole" your attempt that you did 50 minutes later…
  4. ``` ((https?|ftp):\/\/(([^.\/\s#?]+?)(?=\.)([^\s]+))) ``` I still need to perfect this… It's almost there, just one more rule... I'm heading to lunch, I'll perfect this later.
×
×
  • Create New...