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.
文字列 ' this is an example' があり、それを と照合しようとすると/\d*/、文字列全体が一致すると仮定しましたが、受信した唯一の一致は位置 ( の前、とtの間など) でした。th
this is an example
/\d*/
t
h
なぜこうなった?
\d数字のプレースホルダーです (文字と一致しませんでした)。\Dを使用するか、まったく別のものを表現したいかのどちらかです。
\d
\D
なぜなら、「これは例です」では
写真を手に入れましたか?