Skip to content

Commit

Permalink
Merge pull request #1422 from MitrahSoft/Added_a_example_13/03/2024
Browse files Browse the repository at this point in the history
Added a examples to functions for lucee docs
  • Loading branch information
zspitzer authored Mar 14, 2024
2 parents d731c1a + e9720da commit ac2137d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
8 changes: 7 additions & 1 deletion docs/03.reference/01.functions/lsparsenumber/_examples.md
Original file line number Diff line number Diff line change
@@ -1 +1,7 @@
*There are currently no examples for this function.*
```luceescript+trycf
writeOutput(lsParseNumber("25,000") & "<br>");
writeOutput(lsParseNumber("0012.456") & "<br>");
writeOutput(lsParseNumber(numberFormat(35,'000.00')) & "<br>");
writeOutput(lsParseNumber(01123) & "<br>");
writeOutput(lsParseNumber(23000) & "<br>");
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Default: false, If set true means returns the result as a struct with keys pos, match and len.

Each are an array with elements for the position and length of the match (first element), and the position and length of any matched subexpressions in the subsequent elements.
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
One: (Default)Returns the first value that matches the regex

All: Returns all values that match the regex

0 comments on commit ac2137d

Please sign in to comment.