--- id: "6acb871f0b402ef2cf879c40" created: "2026-10-11T21:54:57+09:00" updated: "2026-10-11T21:56:49+09:00" --- 今のURLの正規表現ってどうなるんだろう [正規表現] #TODO https://chatgpt.com/c/6acb82eb-ed40-83ee-be62-eb3866ca5266 https://daringfireball.net/2010/07/improved_regex_for_matching_urls `(?i)\b((?:https?://|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))` ちなみに正規表現捨てるなら[linkify-it]など