====== Extract ====== The **Extract ()** function takes a value from the specified string that is determined by the regular expression to be specified as a parameter ((RegEx = regular expression)). \\\ ==== Syntax: ==== Extract(string, regular expression) {{:images:sign_warning.png?nolink|}}**Note:** In the RegEx,a so-called **Capturing Group** has to be determined. A capturing group is enclosed with the round brackets. In this example, the capturing group is defined with ** ([a-zA-Z])**.:Extract(Items[1]/@SupplierSeason, '[a-zA-Z]([a-zA-Z])\d{2}') If a@SuppliereSeason =' 9 AW17', the function returns' W' accordingly. {{:images:sign_warning.png?nolink|}}**Note:** Recommended tools for developing and testing regular expressions are [[https://regex101.com/|regex101.com]] and [[https://regexper.com|regexper.com]]. ==== Samples: ==== Extract('value: 123 value2: 789', '(\d+)') returns 123 Extract('value: 123 value2: 789', 'value2: (\d+)') returns 789 Extract('value: 123 value2: 789', '^value2: (\d+)') returns empty Extract('value: 789', '^value: (\d+)') returns 789 Extract('value:      123 value: 789', '^value:[ ]*(\d+)') returns 123