Skip to content

Commit

Permalink
Added a examples to functions for lucee docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cfmitrah committed Mar 13, 2024
1 parent d731c1a commit e9720da
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 e9720da

Please sign in to comment.