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.
走行距離の正規表現を書くのに苦労しています。マイレージは、次のいずれかの形式で取得できます。
正規表現戦略については、最初にマイルを読み取り、次にその前の最初の単語を取得することをお勧めします。したがって、マイルが最初に読み取られ、次におそらく 130,XXX になります。
この正規表現を使用する^\d+,?(\d|X|k)+\smiles$
^\d+,?(\d|X|k)+\smiles$