我找不到一種方法來檢測變量是否爲正則表達式。但我也需要弄清楚它是否是一個對象,所以我不能使用typeof(regex) === 'object'並依賴它,因爲它可能會因爲if語句將執行它,就好像它是一個正則表達式。但我希望它也能在傳統瀏覽器中工作。任何幫助將不勝感激。 var regex= /^[a-z]+$/;
//...Some code that could alter the rege
我經歷了一段時間對量子計算機是如何工作感興趣的,以及如果它們變得實用,它們可能是有益的。我知道他們談論破碼。 I was interested is using them for validating software by essentially trying all possible inputs (in parallel) and seeing if any error states are