Child pages
  • RegExp

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

padding0px
width80px

...

Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary

...

Table Cell (td)
Boolean

...

DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY (EXCEPT INSIDE THE DIV BELOW WITH ID=DESCRIPTION), UNLESS YOU KNOW WHAT YOU'RE DOING.
THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO AUTO UPDATE THE CONTENT THROUGH THE DOC GENERATOR.
Enter additional information related to this 'class' inside the {div} macro with 'id=description'
Divcache
styleindexdisplay:none

...

iddescription

...

Table Cell (td)
Boolean

...

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

servoy sSummary12%30%58%height: 30px;3Property SummarySpecifies if the "g" modifier is set.

...

...

Specifies if the "i" modifier is set.

...

Table Cell (td)
Number
An integer specifying the index at which to start the next match.

...

Table Cell (td)
Boolean

...

Specifies if the "m" modifier is set.

...

Table Cell (td)
String

...

...

padding0px
width80px

...

The text used for pattern matching.

...

...

Table Cell (td)
String

...

servoy sSummary12%30%58%height: 30px;

...

Table Head (th)
colspan2
Method Summary

...

Table Cell (td)
Boolean

...

3Methods SummarySearch a string for a specified value.

...

Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} string

...

idret

...

classsIndent

...

servoy sDetail2Property Detailsglobalname

global

id

des

sIndent
Specifies if the "g" modifier is set.
tr
ret

Returns

divsIndentclients

idSearch a string for a specified value.

HTML Table

propertyclass
Colgroup Tag
Column
padding0px
width100%
Table Row (tr)
style2100%height:30px;
Table Head (th)
colspan1
Table Body (tbody)
idid
Table Row (tr)
Table Cell (td)
Table Row (tr)
Table Cell (td)
Div
classid
Table Cell (td)
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str = 'Visit www.servoy.com';
var patt1 = new RegExp('www');
application.output(patt1.global);
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idignoreCase
Table Row (tr)
idname
Table Cell (td)
ignoreCase
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Specifies if the "i" modifier is set.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str = 'Visit www.servoy.com';
var patt1 = new RegExp('www');
application.output(patt1.ignoreCase);
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idlastIndex
Table Row (tr)
idname
Table Cell (td)
lastIndex
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
An integer specifying the index at which to start the next match.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Number
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str = 'The rain in Spain stays mainly in the plain';
var patt1 = new RegExp('ain', 'g');
patt1.test(str);
application.output('Match found. index now at: ' + patt1.lastIndex);
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idmultiline
Table Row (tr)
idname
Table Cell (td)
multiline
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Specifies if the "m" modifier is set.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
Boolean
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str = 'Visit www.servoy.com';
var patt1 = new RegExp('www','m');
application.output(patt1.multiline);
Table Row (tr)
classlastDetailRow
Table Cell (td) Table Body (tbody)
idsource
Table Row (tr)
idname
Table Cell (td)
source
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
The text used for pattern matching.
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str = 'Visit www.servoy.com';
var patt1 = new RegExp('www.','g');
application.output('The regular expression is: ' + patt1.source);
Table Row (tr)
classlastDetailRow
Table Cell (td)

...

idfunction
classservoy sDetail

...

padding0px
width100%
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan1
Method Details

...

idexec-Object
Table Row (tr)
idname
Table Cell (td)
exec
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
String
Span
stylefont-weight: bold;
exec
Span
(string)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Search a string for a specified value. Returns the found value and remembers the position.
Table Row (tr)
idprs
Table Cell (td)
Parameters
Div
classsIndent
{Object} string
Table Row (tr)
idret
Table Cell (td)
Returns
Div
classsIndent
String - A String representing the found value.
Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str='Visit www.servoy.com';
var patt=new RegExp('servoy');
application.output(patt.exec(str));

...

classlastDetailRow

...

idtest-Object
Table Row (tr)
idname
Table Cell (td)
test
Table Row (tr)
idsig
Table Cell (td)
Span
stylemargin-right: 5px;
Boolean
Span
stylefont-weight: bold;
test
Span
(string)
Table Row (tr)
iddes
Table Cell (td)
Div
classsIndent
Search a string for a specified value. Returns true or false.

...

classlastDetailRow

...

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
ignoreCasename

ignoreCase

dessIndent
Specifies if the "i" modifier is set.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
lastIndexname

lastIndex

dessIndent
An integer specifying the index at which to start the next match.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
multilinename

multiline

dessIndent
Specifies if the "m" modifier is set.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow
sourcename

source

dessIndent
The text used for pattern matching.
ret

Returns

sIndent
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow

functionservoy sDetail2100%height:30px2Methods Detailsexecname

exec(string)

dessIndent
Search a string for a specified value. Returns the found value and remembers the position.
prs

Parameters

sIndentstring ;
ret

Returns

sIndent A String representing the found value.
clients

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRowtestname

test(string)

dessIndent
Search a string for a specified value. Returns true or false.
prs

Parameters

sIndentstring ;
ret

Returns

sIndent true if a match was found in the string. false otherwise.
clients

Table Row (tr)
idsam
Table Cell (td)
Sample
Div
classsIndent
Code Block
languagejavascript
var str='Visit www.servoy.com';
var patt=new RegExp('soft');
application.output(patt.test(str)==true);
patt.compile('servoy');
application.output(patt.test(str)==true)

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow