Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
themeConfluence
languagejavascript
a = "[3, 4, 5]";
c = a.decode(); // c = [3, 4, 5]

Note that if the content in the target is not valid JSON, decode() returns the string unchanged without warning. JSON Lint is your friend. 

extract()

The extract() operator matches the string using a regular expression given as the sole argument and returns the specified capture groups as an array. For example:

...