Child pages
  • RegExp

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Wiki Markup
{hidden}
DO NOT EDIT THE CONTENT OF THIS PAGE DIRECTLY, UNLESS YOU KNOW WHAT YOU'RE DOING.
		THE STRUCTURE OF THE CONTENT IS VITAL IN BEING ABLE TO EXTRACT CHANGES FROM THE PAGE AND MERGE THEM BACK INTO SERVOY SOURCE{hidden}
{sub-section:description|text=}{sub-section}\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Property SummarySummery{th}{tr}{tbody}{tr}{td}[Boolean]{td}{td}[#global]
Specifies if the "g" modifier is set.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#ignoreCase]
Specifies if the "i" modifier is set.{td}{tr}{tbody}{tbody}{tr}{td}[Number]{td}{td}[#lastIndex]
An integer specifying the index at which to start the next match.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#multiline]
Specifies if the "m" modifier is set.{td}{tr}{tbody}{tbody}{tr}{td}[String]{td}{td}[#source]
The text used for pattern matching.{td}{tr}{tbody}{table}\\ 

{table:id=|class=servoy sSummery}{colgroup}{column:padding=0px|width=80px}{column}{column}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=2}Method SummarySummery{th}{tr}{tbody}{tr}{td}[String]{td}{td}[#exec]\(string)
Search a string for a specified value.{td}{tr}{tbody}{tbody}{tr}{td}[Boolean]{td}{td}[#test]\(string)
Search a string for a specified value.{td}{tr}{tbody}{table}\\ 

{table:id=property|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Property Details{th}{tr}{tbody:id=882DD9C6-D90C-447C-9F24-D44C23D5D1BF=global|class=node}{tr:id=name}{td}h6.global{td}{tr}{tr:id=des}{td}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BFglobal_des|text=|trigger=button}{sub-section}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BFglobal_des|trigger=none|class=sIndent}Specifies if the "g" modifier is set.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssnc}{td}*ParametersSince*\\{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_prsglobal_snc|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_prsglobal_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{divtd}{tdtr}{trbuilder-show}{builder-show:permission=edit}{tr:id=retprs}{td}*ReturnsParameters*\\{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_retglobal_prs|text=|trigger=button}{sub-section}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_retglobal_prs|trigger=none|class=sIndent}[Boolean]{{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seeret}{td}*Also seeReturns*\\{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_seeglobal_ret|text=|trigger=button}{sub-section}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_seeglobal_ret|trigger=none|class=sIndent|trigger=none}}[Boolean]{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linksee}{td}*ExternalAlso linkssee*\\{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BFglobal_see|text=|trigger=button}{sub-section}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_link|div:class=sIndent}{sub-section:global_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=samlink}{td}*SampleExternal links*\\{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_samglobal_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:882DD9C6-D90C-447C-9F24-D44C23D5D1BF_sam|class=sIndent|global_link|trigger=none}{code:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www');	
application.output(patt1.global);
{code}{sub-section}{div}{td}{tr}{builder-show}{tr:classid=lastDetailRowsam}{td}{td}{tr}{tbody}{tbody:id=A074B3A6-DD8B-452A-A602-F4DEC3769119}{tr:id=name}{td}h6.ignoreCase{td}{tr}{tr:id=des}{td}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_des*Sample*\\{sub-section:global_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_desglobal_sam|trigger=none|class=sIndent}Specifies if the "i" modifier is set.{sub-section}{code:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www');	
application.output(patt1.global);
{code}{sub-section}{div}{td}{tr}{builder-show:permission=edittr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=ignoreCase|class=node}{tr:id=name}{td}h6.ignoreCase{td}{tr}{tr:id=prsdes}{td}*Parameters*\\{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_prsignoreCase_des|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_prssub-section:ignoreCase_des|trigger=none|class=sIndent}Specifies if the "i" modifier is set.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=retsnc}{td}*ReturnsSince*\\{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_retignoreCase_snc|text=|trigger=button}{sub-section}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_retignoreCase_snc|trigger=none|class=sIndent}[Boolean] Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=seeprs}{td}*Also seeParameters*\\{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_seeignoreCase_prs|text=|trigger=button}{sub-section}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_seeignoreCase_prs|trigger=none|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkret}{td}*External linksReturns*\\{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_seeignoreCase_ret|text=|trigger=button}{sub-section}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_linkignoreCase_ret|trigger=none|class=sIndent|trigger=none}}[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=samsee}{td}*SampleAlso see*\\{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_samignoreCase_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:A074B3A6-DD8B-452A-A602-F4DEC3769119_sam|class=sIndent|trigger=none}{code:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www');	
application.output(patt1.ignoreCase);
{codeignoreCase_see|trigger=none}{sub-section}{tddiv}{trtd}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=3A943831-1FC2-4634-AF84-F8978631ADB3}{tr:id=name}{td}h6.lastIndex{td}{tr}{tr:id=des}{td}builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_designoreCase_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_designoreCase_link|trigger=none|class=sIndent}An integer specifying the index at which to start the next match.{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=prssam}{td}*ParametersSample*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_prsignoreCase_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_prsignoreCase_sam|trigger=none}{subcode:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www');	
application.output(patt1.ignoreCase);
{code}{sub-section}{div}{td}{tr}{builder-show}{tr:id=retclass=lastDetailRow}{td}{td}*Returns*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_ret{tr}{tbody}{tbody:id=lastIndex|class=node}{tr:id=name}{td}h6.lastIndex{td}{tr}{tr:id=des}{td}{sub-section:lastIndex_des|text=|trigger=button}{sub-section}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_retlastIndex_des|trigger=none|class=sIndent}[Number]An integer specifying the index at which to start the next match.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=seesnc}{td}*Also seeSince*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_seelastIndex_snc|text=|trigger=button}{sub-section}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_seelastIndex_snc|trigger=none|class=sIndent|trigger=none}} Replace with version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=linkprs}{td}*External linksParameters*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_seelastIndex_prs|text=|trigger=button}{sub-section}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_linklastIndex_prs|trigger=none|class=sIndent|trigger=none}{sub-section}{td}{tr}{builder-show}{tr:id=samret}{td}*SampleReturns*\\{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_samlastIndex_ret|text=|trigger=button}{sub-section}{sub-section:3A943831-1FC2-4634-AF84-F8978631ADB3_samlastIndex_ret|trigger=none|class=sIndent|trigger=none}{code:language=javascript}
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);
{code}{}[Number]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:lastIndex_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndex_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:lastIndex_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndex_link|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:lastIndex_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:lastIndex_sam|trigger=none}{code:language=javascript}
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);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=multiline|class=node}{tr:id=name}{td}h6.multiline{td}{tr}{tr:id=des}{td}{sub-section:multiline_des|text=|trigger=button}{sub-section}{sub-section:multiline_des|trigger=none|class=sIndent}Specifies if the "m" modifier is set.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=snc}{td}*Since*\\{sub-section:multiline_snc|text=|trigger=button}{sub-section}{sub-section:multiline_snc|trigger=none|class=sIndent} Replace with version info{sub-section}{td}{tr}{builder-show}{trbuilder-show:classpermission=lastDetailRowedit}{tdtr:id=prs}{td}{tr}{tbody}{tbody:id=DC6084E2-F616-4C61-84A1-349D3EF6AD00}{tr:id=name}{td}h6.multiline*Parameters*\\{sub-section:multiline_prs|text=|trigger=button}{sub-section}{sub-section:multiline_prs|trigger=none|class=sIndent}{sub-section}{td}{tr}{builder-show}{tr:id=desret}{td}*Returns*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_desmultiline_ret|text=|trigger=button}{sub-section}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_desmultiline_ret|trigger=none|class=sIndent}Specifies if the "m" modifier is set.[Boolean]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=prssee}{td}*ParametersAlso see*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_prsmultiline_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_prsmultiline_see|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=retlink}{td}*ReturnsExternal links*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_ret{sub-section:multiline_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_retmultiline_link|trigger=none|class=sIndent}[Boolean]{sub-section}{div}{td}{tr}{builder-show:permission=edit}{tr:id=seesam}{td}*Also seeSample*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_seemultiline_sam|text=|trigger=button}{sub-section}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_see|div:class=sIndent|trigger=none}{sub-section:multiline_sam|trigger=none}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_see|text=|trigger=button}{sub-section}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_link|class=sIndent|trigger=none}{sub-sectioncode:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www','m');	
application.output(patt1.multiline);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{builder-showtbody}{tbody:id=source|class=node}{tr:id=samname}{td}*Sample*\\{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_sam|text=|trigger=button}{sub-section}{sub-section:DC6084E2-F616-4C61-84A1-349D3EF6AD00_sam|class=sIndent|trigger=none}{code:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www','m');	
application.output(patt1.multiline);
{codeh6.source{td}{tr}{tr:id=des}{td}{sub-section:source_des|text=|trigger=button}{sub-section}{td}{tr}{tr:class=lastDetailRow}{tdsub-section:source_des|trigger=none|class=sIndent}The text used for pattern matching.{sub-section}{td}{tr}{tbody}{tbody:id=3CDF9E7B-E044-438B-88FB-FF639341CAB0}{tr:id=name}{td}h6.source{td}{trbuilder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0_dessource_snc|text=|trigger=button}{sub-section}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0_dessource_snc|trigger=none|class=sIndent}The textReplace usedwith for pattern matching.version info{sub-section}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=prs}{td}*Parameters*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_prs|trigger=none|class=sIndent}{sub-section}{div}{td}{tr}{builder-show}{tr:id=ret}{td}*Returns*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_ret|text=|trigger=button}{sub-section}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_ret|trigger=none|class=sIndent}[String]{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0_seesource_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:3CDF9E7B-E044-438B-88FB-FF639341CAB0source_sam|class=sIndent|trigger=none}{code:language=javascript}
var str = 'Visit www.servoy.com';	
var patt1 = new RegExp('www.','g');	
application.output('The regular expression is: ' + patt1.source);
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}\\ 

{table:id=function|class=servoy sDetail}{colgroup}{column:padding=0px|width=100%}{column}{colgroup}{tr:style=height: 30px;}{th:colspan=1}Method Details{th}{tr}{tbody:id=CE34FA67-AE92-4A26-B96C-7734C4A3C387exec|class=node}{tr:id=name}{td}h6.exec{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[String]{span}{span:id=iets|style=float: left; font-weight: bold;}exec{span}{span:id=iets|style=float: left;}\(string){span:id=iets|style=float: left;}\(string){span}{td}{tr}{tr:id=des}{td}{sub-section:exec_des|text=|trigger=button}{sub-section}{sub-section:exec_des|trigger=none|class=sIndent}Search a string for a specified value. Returns the found value and remembers the position.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessnc}{td}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387_des*Since*\\{sub-section:exec_snc|text=|trigger=button}{sub-section}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387_desexec_snc|trigger=none|class=sIndent}Search aReplace stringwith for a specified value. Returns the found value and remembers the position.version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_prs|text=|trigger=button}{sub-section}{div:class=sIndentsection}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_prs|trigger=none|class=sIndent}\{[Object]} string
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_ret|text=|trigger=button}{sub-section}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_ret|trigger=none|class=sIndent}[String] -- A String representing the found value.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387_seeexec_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:CE34FA67-AE92-4A26-B96C-7734C4A3C387exec_sam|class=sIndent|trigger=none}{code:language=javascript}
var str='Visit www.servoy.com';
var patt=new RegExp('servoy');
application.output(patt.exec(str));
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{tbody:id=42B36AAA-A7B9-478C-9754-AB60DDFD7C96=test|class=node}{tr:id=name}{td}h6.test{td}{tr}{tr:id=sig}{td}{span:style=float: left; margin-right: 5px;}[Boolean]{span}{span:id=iets|style=float: left; font-weight: bold;}test{span}{span:id=iets|style=float: left;}\(string){span: bold;}test{span}{span:id=iets|style=float: left;}\(string){span}{td}{tr}{tr:id=des}{td}{sub-section:test_des|text=|trigger=button}{sub-section}{sub-section:test_des|trigger=none|class=sIndent}Search a string for a specified value. Returns true or false.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=dessnc}{td}*Since*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96_destest_snc|text=|trigger=button}{sub-section}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96_destest_snc|trigger=none|class=sIndent}Search aReplace stringwith for a specified value. Returns true or false.version info{sub-section}{td}{tr}{builder-show}{tr:id=prs}{td}*Parameters*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_prs|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_prs|trigger=none|class=sIndent}\{[Object]} string
{sub-section}{div}{td}{tr}{tr:id=ret}{td}*Returns*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_ret|text=|trigger=button}{sub-section}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_ret|trigger=none|class=sIndent}[Boolean] -- true if a match was found in the string. false otherwise.{sub-section}{td}{tr}{builder-show:permission=edit}{tr:id=see}{td}*Also see*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_see|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_see|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{builder-show:permission=edit}{tr:id=link}{td}*External links*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96_seetest_link|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_link|class=sIndent|trigger=none}{sub-section}{div}{td}{tr}{builder-show}{tr:id=sam}{td}*Sample*\\{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_sam|text=|trigger=button}{sub-section}{div:class=sIndent}{sub-section:42B36AAA-A7B9-478C-9754-AB60DDFD7C96test_sam|class=sIndent|trigger=none}{code:language=javascript}
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)
{code}{sub-section}{div}{td}{tr}{tr:class=lastDetailRow}{td}{td}{tr}{tbody}{table}