Match IRC Channel with regular expression

﹥>﹥吖頭↗ 提交于 2019-12-01 08:05:56

问题


How would one go about using regular expressions to match IRC channel names? The names would have the preceding hash symbol (#) included.


回答1:


/([#&][^\x07\x2C\s]{,200})/

Should do it, according to RFC1459's specification.



来源:https://stackoverflow.com/questions/4953301/match-irc-channel-with-regular-expression

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!