Skip to main content
. 2012 Feb 15;25(5):635–645. doi: 10.1007/s10278-012-9462-x

Table 2.

DicomEdit built-in functions

Function name Arguments Description
format Format string, value-1, value-2, … Formats the given values using the provided format string, using the same formatting syntax as the Java class java.text.MessageFormat.
getURL URL Retrieves the content of the resource at the provided URL; if a username and password are included in the URL, uses HTTP Basic Authentication.
lowercase String Converts all uppercase characters in the argument to lowercase.
match Value, regexp, index Matches the value against the provided regular expression and returns the content of the contained matching group with the given index. This is a more powerful and flexible method for extracting substrings than the index-based substring function.
replace String, target, replacement Replaces all occurrences of target in the given string with replacement.
substring String, start-index, end-index Returns a substring of string beginning at character number start-index (where the first character has index 0) and extending to character number end-index-1.
uppercase String Converts all lowercase characters in the argument to uppercase.
urlEncode String Encodes the given value so that it can be embedded in a URL.