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.
私は次の正規表現を取得しようとしています:
これまでのところ:
/#[a-zA-Z0-9]\t/
これは間違っているようですか?それを修正するにはどうすればよいですか?
空白とは実際の空白(つまり、スペース、タブなど)を意味する場合、これは次のことを行います。
/#\S+/
(\Sと同等[^\s])
\S
[^\s]
tabsただし、空白を書いたときに、これを意味する場合は、次のようになります。
tabs
/#[^\t]+/