Re: Regular Expression
From: McKirahan (News_at_McKirahan.com)
Date: 10/08/04
- Previous message: McKirahan: "Re: Regular Expression"
- In reply to: Craig: "Re: Regular Expression"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 08 Oct 2004 19:31:28 GMT
"Craig" <Craig@discussions.microsoft.com> wrote in message
news:B5587F23-4375-4861-A63D-279DF2007723@microsoft.com...
> Many thanks, where did "g" come from?
[snip]
>From the documentation :-)
Description
Contains a regular expression pattern.
Syntax 1
var regularexpression = /pattern/[switch]
Syntax 2
var regularexpression = new RegExp("pattern",["switch"])
The regular expression object syntax has these parts:
pattern Required. The regular expression pattern to use.
If you use Syntax 1, delimit the pattern by "/" characters.
If you use Syntax 2, enclose the pattern in quotation marks.
switch Optional. Enclose switch in quotation marks if you use Syntax 2.
Available switches are:
i (ignore case)
g (global search for all occurrences of pattern)
gi (global search, ignore case)
- Previous message: McKirahan: "Re: Regular Expression"
- In reply to: Craig: "Re: Regular Expression"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|