Commit 5301b3fa authored by Jhon  Edison Gomez's avatar Jhon Edison Gomez
Browse files

test commit

parent 88681af3
......@@ -4,6 +4,10 @@
date : 03-Apr-2015
description: Create form to get the data and send to the functions
Update by : Jhon Edison Gomez
date : 05-Apr-2015
description: Test commit
--->
<!---import of libraries--->
......
<cfinclude template="Functions.cfm" />
<!--get the sentence to use the regular expresion functions---->
<cfset sentence = "hello, my name, is jhon,">
<h1>SPLIT FUNCTION</h1>
<cfset value = resplitExample(sentence)>
<cfset length = arrayLen(value)>
<cfoutput>
this is the original sentence: #sentence#<br>
this is the new sentence:
<!---print the result to resplitExample function, this return an array --->
</cfoutput>
<cfloop from="1" index="index" to="#length#">
<cfoutput>
#value[index]#
</cfoutput>
</cfloop>
<!---RERplace function--->
<h1>RERPLACE FUNCTION</h1>
<cfset value = replaceExample(sentence)>
<cfoutput>
this is the original sentence: #sentence#<br>
this is the new sentence: #value#
</cfoutput>
<h1>REFIND FUNCTION</h1>
<cfset value = findExample("hello",sentence)>
<cfoutput>
the position in the sentence is :#value#
</cfoutput></p>
<cfset mydata = 'some string with "the first data i want" and "the second data i want"'/>
<cfset matches = REMatch('"([^"]*)"', mydata) />
<cfdump var="#matches#" label="Example REMatch" />
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment