Child pages
  • RegExp

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Divcache
Div
iddescription
HTML Table
id
classservoy sSummary
Colgroup Tag
Col
width80px
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Property Summary
Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)global
styleindexdisplay:none

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.

true
refresh100d
showRefreshtrue
iddoc
titleRefresh page
showDatetrue
retryEnable

servoy sReturnTypes2100%height: 30px;2Supported ClientssWordListSmartClientsWordListWebClientsWordListNGClientsWordListMobileClient

Table Cell (td)
Boolean
Table Cell (td)ignoreCase
servoy sSummary12%30%58%height: 30px;3Property SummarySpecifies if the "g" modifier is set. Table Row (tr)
Table Cell (td)
Number
Table Cell (td)lastIndex
Specifies if the "i" modifier is set. Table Row (tr)An integer specifying the index at which to start the next match. Table Row (tr)
Table Cell (td)
Boolean
Table Cell (td)multiline
Specifies if the "m" modifier is set. Table Row (tr)
Table Cell (td)
String
Table Cell (td)source
The text used for pattern matching.table

id

classservoy sSummary

Colgroup Tag
Col
width80px
Col
Table Head (thead) Table Row (tr)style Table Row (tr)
Table Cell (td)
String
Table Cell (td)exec(string)
servoy sSummary12%30%58%height: 30px;
Table Head (th)
colspan2
Method Summary
Table Cell (td)test(string)
3Methods SummarySearch a string for a specified value. Table Row (tr)
Table Cell (td)
Boolean
Search a string for a specified value.table

id

propertyclass Colgroup Tag Colcolspanservoy sDetail2width100%

Col
Table Head (thead) Table Row (tr)styleheight:30px; Table Head (th)colspan2Property Details Table Body (tbody)ididglobal Table Row (tr)nametdid

global

Table Row (tr)des Table Cell (td) DivclasssIndentSpecifies if the "g" modifier is set. Table Row (tr)idtdret

Returns

div
Table Row (tr)
idname
Table Cell (td)

ignoreCase

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
sIndentclients

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

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
ignoreCasename

ignoreCase

dessIndentSpecifies if the "i" modifier is set.
Table Row (tr)idret

Table Cell (td)

Returns

div Table Body (tbody)
idlastIndex
Table Row (tr)
idname
Table Cell (td)

lastIndex

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
sIndentclients

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)
 

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
lastIndexname

lastIndex

dessIndentAn integer specifying the index at which to start the next match.
Table Row (tr)idret

Table Cell (td)

Returns

div Table Body (tbody)
idmultiline
Table Row (tr)
idname
Table Cell (td)

multiline

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
sIndentclients

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)
 

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
multilinename

multiline

dessIndentSpecifies if the "m" modifier is set.
Table Row (tr)idret

Table Cell (td)

Returns

div Table Body (tbody)
idsource
Table Row (tr)
idname
Table Cell (td)

source

Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
sIndentclients

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)
 

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
sourcename

source

dessIndentThe text used for pattern matching.
Table Row (tr)idret

Table Cell (td)

Returns

divsIndentclients

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)
 
HTML Table
idfunction
classservoy sDetail
Colgroup Tag
Col
colspan2
width100%
Col
Table Head (thead)
Table Row (tr)
styleheight: 30px;
Table Head (th)
colspan2
Method Details
Table Body (tbody)
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

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 

functionservoy sDetail2100%height:30px2Methods Detailsexecname

exec(string)

dessIndentSearch a string for a specified value. Returns the found value and remembers the position.
Table Row (tr)idtdprs

Parameters

Divclass Table Row (tr)id

sIndent{Object} stringstring ret

Table Cell (td)

Returns

div Table Row (tr)
iddes
Table Cell (td) Div
classsIndent
sIndentclients

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));
Table Row (tr)
classlastDetailRow
Table Cell (td)
 
Table Body (tbody)
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)

Supported Clients

sIndentSmartClient,WebClient,NGClient,MobileClient
sam

Sample

sIdentjavascript
lastDetailRow 
testname

test(string)

dessIndentSearch a string for a specified value. Returns true or false.
Table Row (tr)idprs

Table Cell (td)

Parameters

Divclassid

sIndent{Object} string Table Row (tr)string ret

Table Cell (td)

Returns

div Table Row (tr)
classlastDetailRow
Table Cell (td) sIndentclients

classsIndent
Boolean - true if a match was found in the string. false otherwise.
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