Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使这个正则表达式工作,需要在文本中找到每个出现的#字符,并用不同的单词替换下一个出现的每个字符,例如:word1、word2、word3 ......试过这个
(^.*#.*$)
用。。。来代替
(word1) (word2) (word3)
或者
\1word1\2word2\3word3
它总是用所有的词来代替它。