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-Z\s,!?]$'
助けてくれてありがとう
これを試してみてください/^[a-zA-Z0-9\s\.,!?]*$/
/^[a-zA-Z0-9\s\.,!?]*$/