All have a start and end, and use curly brackets. Some take additional parameters separated by colons. :
They are also processed in this order of sequence as listed here:
Encrypts the inner data in DES format.
encrypt_startURL encodes the inner data.
encode_startURL decodes the inner data.
decode_startConverts the inner data to uppercase.
upper_startConverts the inner data to lowercase.
lower_startCreates a MD5 hash of the inner data.
md5_startCuts off the last part of a path string in the inner data. So /folder1/folder2/folder3/ would become /folder1/folder2/
chop_startCleans up HTML data to remove its tags with a regex expression.
htmlclean_startCleans up HTML data to remove tags using a different non regex algorithm.
htmlclean2_startGets the last element of a path in the inner data. Example: {last_start}/folder1/folder2/file.txt{last_end} results in file.txt
last_startTrims off white space on the ends of the inner data.
trim_startSafeguards the text for raw SQL preventing ' and ; and %, etc risks in input text.
sql_startFinds a location of a string. Example: {indexof_start:thing:-1}something to search in{indexof_end} it searches for the location of 'thing' in that text starting from the right side moving backwards. The -1 means a negative search, where a -5 would mean a negative search starting from position 5. A 0 would mean start at the beginning.
indexof_startGrab a part of a string. Example: {substring_start:2:5}something to find{substring_end} would result in 'met'
substring_startSplit a string into pieces with the character(s) specified. Example: {split_start:_:3}this_is_a_test_for_split{split_end} would result in the 3rd item which is the word 'test'
split_startChange a part of the string. Example: {replace_start:test:big_test}this_is_a_test_for_replace{replace_end}
replace_startAdd one to the value assumed to be an integer. {increment_start}50{increment_end} results in a value of 51.
increment_startOpposite of increment.
decrement_startAdd an amount to the number. Example: {add_start:500}1000{add_end} results in 1500.
add_startParsing a date to a millisecond value. Example: {parse_start:MMddyy HH~..~mm~..~ss}042578 22:43:12{parse_end} Note how the sideways colon is used to represent the colon since colon is our separator character. ~..means : in functions where that scenario occurs.
parse_startDo the opposite, producing a formatted date. {rparse_start:MMddyy HH~..~mm~..~ss}12345678923{rparse_end} would result in some date formatted value.
rparse_startGrab a part of a formatted URL. Example: {url_start:host}ftp://demo:demo@crushftp.com/demo/folder/file.txt{url_end} would result in 'crushftp.com'
url_startGet the length of the inner data. Example: {length_start}blah{length_end} would result in 4.
length_startDo very basic math operation on text formatted math. Example: {math_start:l}5+5{math_end} would result in 10. The l is for LONG. f is for FLOAT. i is for INTEGER, which is the default. So {math_start:f}5+5{math_end} would result in 10.0
math_start
Add new attachment
Only authorized users are allowed to upload new attachments.
«
This particular version was published on 29-Dec-2020 05:25 by Ben Spink.
G’day (anonymous guest)
Log in
JSPWiki