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.
フォームに 2 つのテキストボックスがあります。1 つ目は正規表現パターン用で、2 つ目は入力テキスト用です。
入力された正規表現パターンと入力されたテキストが一致するかどうかを確認しようとしています。
これは私の簡単な試みです。
そして、これは動作中のデモです:
'01-01-2012'.match( /\d{2}-\d{2}-\d{4}/ )
フィドル
私のクエリに対する解決策はありますか?