0
文字列を使って、19XXまたは18XXの形式で日付を検索しようとしています。ここでXXは任意の整数です。ここでは基本的には設定されている:任意の助け正規表現を使用して長い文字列の単語「19XX」または「18XX」を検索するJavaScript
var myLongString = "The Cold War (Russian: Холо́дная война́, Kholodnaya voĭna) was the continuing state from roughly 1946 to 1991 of political conflict...";
function getDates(myLongString) {
//use regular expressions to create a list of words in the "19XX" or "18XX" format
//and then return that list
}
感謝を。
それ以外の場合は、19222と91822のような数字の部分にも一致します。 –
あなたは正しいです。 – SLaks
あなたは上司です、ありがとう – JDS