functx:camel-case-to-words

Turns a camelCase string into space-separated words

Description

The functx:camel-case-to-words function turns a camel-case string (one that uses upper-case letters to start new words, as in “thisIsACamelCaseTerm”), and turns them into a string of words using a space or other delimiter.

Parameters

Description

arg:string()

the string to modify

delim:string()

the delimiter for the words (e.g. a space)

Examples

XPath

Results

functx:camel-case-to-words(‘thisIsACamelCaseTerm’,’ ‘)

this Is A Camel Case Term

functx:camel-case-to-words(‘thisIsACamelCaseTerm’,’,’)

this,Is,A,Camel,Case,Term

See Also