RegExpPrototype.compile(Object, Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates and compiles a new RegExpObject object for the specified regular expression pattern and flags.
This API supports the product infrastructure and is not intended to be used directly from your code.
public:
static Microsoft::JScript::RegExpObject ^ compile(System::Object ^ thisob, System::Object ^ source, System::Object ^ flags);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.RegExp_compile)]
public static Microsoft.JScript.RegExpObject compile (object thisob, object source, object flags);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.RegExp_compile)>]
static member compile : obj * obj * obj -> Microsoft.JScript.RegExpObject
Public Shared Function compile (thisob As Object, source As Object, flags As Object) As RegExpObject
Parameters
- thisob
- Object
The object that this method is acting upon.
- source
- Object
The regular expression pattern to search for.
- flags
- Object
Flags for the ignore case, global, and multiline modes.
Returns
A new RegExpObject object.
- Attributes
Applies to
See also
ทํางานร่วมกับเราใน GitHub
แหล่งที่มาสำหรับเนื้อหานี้สามารถพบได้บน GitHub ซึ่งคุณยังสามารถสร้างและตรวจสอบปัญหาและคำขอดึงข้อมูลได้ สำหรับข้อมูลเพิ่มเติม ให้ดูคู่มือผู้สนับสนุนของเรา