StringPrototype.replace(Object, Object, Object) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
첫 번째 지정된 개체에서 지정된 정규식 패턴 검색을 실행하고 일치하는 경우 세 번째 지정된 개체로 대체합니다.
이 API는 제품 인프라를 지원하며 코드에서 직접 사용되지 않습니다.
public:
static System::String ^ replace(System::Object ^ thisob, System::Object ^ regExp, System::Object ^ replacement);
[Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_replace)]
public static string replace(object thisob, object regExp, object replacement);
[<Microsoft.JScript.JSFunction(Microsoft.JScript.JSFunctionAttributeEnum.HasThisObject, Microsoft.JScript.JSBuiltin.String_replace)>]
static member replace : obj * obj * obj -> string
Public Shared Function replace (thisob As Object, regExp As Object, replacement As Object) As String
매개 변수
- thisob
- Object
이 메서드가 수행되는 개체입니다.
- regExp
- Object
검색할 정규식 패턴입니다.
- replacement
- Object
일치하는 경우 대체합니다.
반환
대체 후 새 문자열입니다.
- 특성