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.
文字列内のすべての文字が0〜9桁であることを確認するにはどうすればよいですか?例:1343151234234は有効ですが、2342343ABC34234は無効です。ありがとうございました。
^\d+$
'SingleLine'オプションを使用します(C#ではRegexOptions.SingleLine)。
RegexOptions.SingleLine