JavaScript RegExp compile()
RegExp compile() ကို 1999 ခုနှစ်ကတည်းက ရပ်ဆိုင်းထားသည်။
အဲဒါကို ရှောင်ပါ။
၎င်းသည် သင့်ဘရောက်ဆာတွင် အချိန်မရွေး အလုပ်မလုပ်တော့ပါ။
အဓိပ္ပါယ်နှင့် အသုံးပြုမှု
compile() နည်းလမ်းကို JavaScript ဗားရှင်း 1.5 တွင် ရပ်တန့ ်ထားသည်။
script ကိုလုပ်ဆောင်နေစဉ်တွင် ပုံမှန် expression တစ်ခုကို compile လုပ်ရန် နည်းလမ်းကို အသုံးပြုခဲ့သည်။
အထားအသို
RegExpObject.compile(regexp, modifier)
ကန့်သတ်တန်ဖိုးများ
Parameter | Description |
---|---|
regexp | A regular expression |
modifier | Specifies the type of matching. "g" for a global match, "i" for a case-insensitive match and "gi" for a global, case-insensitive match |