Sideway
output.to from Sideway
Draft for Information Only

Content

VBScript Methods of RegExp Object
 Execute Method
  Syntax
  Argument
  Remark
  ReqVersion
  Applied to
 Replace Method
  Syntax
  Argument
  Remark
  ReqVersion
  Applied to
 Test Method
  Syntax
  Argument
  Remark
  ReqVersion
  Applied to

VBScript Methods of RegExp Object

Some typical predefined Elements are.

  • RegExp Object:
    • Execute Method
    • WriteLine Method

Execute Method

last updated 11 Dec 2017

is to executes a regular expression search against a specified string.

Syntax

reobjvar.Execute(string)

Argument

reobjvarRequired. The variable name of the associated Object instantance.ExecuteRequired Method Keyword. To specify the Execute Method of an Object.stringRequired. To specify the text string upon which the regular expression is executed..Required. The dot notation used to access the Property of an object.(…)Required. The brackets to enclose the parameters.

Remark

  • The actual pattern for the regular expression search is set using the Pattern property of the RegExp object.
  • The Execute method returns a Matches Collection that contains a Match Object for each match found in string. Execute returns an empty Matches Collection if no match is found.

ReqVersion

5

Applied to

RegExp Object

Replace Method

last updated 11 Dec 2017

is to replaces the given string1 found in a regular expression search with the specified string2.

Syntax

reobjvar.Replace(string1, string2)

Argument

reobjvarRequired. The variable name of the associated Object instantance.ReplaceRequired Method Keyword. To specify the Replace Method of an Object.string1Required. To specify the text string in which the text replacement is to occur.String2Required. to specify replacement text string.(…)Required. The brackets to enclose the parameters.,Required. the delimiter to separate the parameters.

Remark

  • The actual pattern for the text being replaced is set using the Pattern property of the RegExp object.
  • The Replace method returns a copy of string1 with the text of RegExp.Pattern replaced with string2.
  • If no match is found, a copy of string1 is returned unchanged.
  • In addition, the Replace method can replace subexpressions in the pattern by using subexpressions of regular expression.

ReqVersion

5

Applied to

RegExp Object

Test Method

last updated 11 Dec 2017

is to executes a regular expression search against a given string, and to return a Boolean value indicating if a pattern match was found.

Syntax

reobjvar.Test(string)

Argument

reobjvarRequired. The variable name of the associated Object instantance.TestRequired Method Keyword. To specify the Test Method of an Object.stringRequired. To specify the text string upon which the regular expression is executed..Required. The dot notation used to access the Property of an object.(…)Required. The brackets to enclose the parameters.

Remark

  • The actual pattern for the regular expression search is set using the Pattern property of the RegExp object. The RegExp.Global property has no effect on the Test method.
  • The Test method returns True if a pattern match is found; False if no match is found.

ReqVersion

5

Applied to

RegExp Object

©sideway

ID: 180500017 Last Updated: 5/17/2018 Revision: 0


Latest Updated LinksValid XHTML 1.0 Transitional Valid CSS!Nu Html Checker Firefox53 Chromena IExplorerna
IMAGE

Home 5

Business

Management

HBR 3

Information

Recreation

Hobbies 8

Culture

Chinese 1097

English 339

Reference 79

Computer

Hardware 224

Software

Application 213

Digitization 32

Latex 52

Manim 204

KB 1

Numeric 19

Programming

Web 289

Unicode 504

HTML 66

CSS 65

SVG 46

ASP.NET 270

OS 429

DeskTop 7

Python 72

Knowledge

Mathematics

Formulas 8

Algebra 84

Number Theory 206

Trigonometry 31

Geometry 33

Coordinate Geometry 2

Calculus 67

Complex Analysis 21

Engineering

Tables 8

Mechanical

Mechanics 1

Rigid Bodies

Statics 92

Dynamics 37

Fluid 5

Fluid Kinematics 5

Control

Process Control 1

Acoustics 19

FiniteElement 2

Natural Sciences

Matter 1

Electric 27

Biology 1

Geography 1


Copyright © 2000-2023 Sideway . All rights reserved Disclaimers last modified on 06 September 2019