String Manipulation

Asc Function

Returns a number representing the ASCII character of the first character of a string

AscB Function

Returns the value of the first byte in a string

AscW Function

Returns the native character code of the first character in a string (Unicode or ANSI)

Chr Function

Returns a string containing the character associated with the specified character code

ChrB Function

Returns a string containing the specified single byte

ChrW Function

Returns a variant string containing the specified native character (Unicode or ANSI)

Execute Method

Performs a regular expression search on a string

Filter Function

Returns an array of strings matching (or not) a specified value

FirstIndex Property

Returns the starting position in a search string where a regular expression match represented by a Match object occurred.

FormatCurrency Function

Returns a string variant formatted using the currency settings for the current locale

FormatDateTime Function

Returns a string variant formatted using the date settings for the current locale

FormatNumber Function

Returns a numeric variant formatted to a specified format

FormatPercent Function

Returns a numeric variant formatted using the % symbol

Global Property

Indicates whether a RegExp object’s pattern should match all occurrences in a search string or just one

IgnoreCase Property

Indicates whether or not a RegExp object’s pattern match should be case-insensitive

InStr Function ...

Get VBScript in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.