Unfortunately Regex is not available in a PA replace() function ;(
Use toLower() to avoid case sensitivity issues
Here are 3 different ways to approach this problem:
Left one: Simple replacements.
(Replace item() with your value)
trim(
replace(
replace(
replace(
replace(
replace(
replace(
toLower(item()),
',',
'.'
),
'euro',
''
),
'eur',
''
),
'€',
''
),
'usd',
''
),
'$',
''
)
)
Middle: Here you don't need to know what to replace. This filters for numbers and dots. but it's not a simple expression anymore, you need a Select (or a Filter).
Select_2 From
chunk(replace(outputs('Compose'), ',', '.'), 1)
Select_Map
if(
contains(
'.0123456789',
item()
),
item(),
''
)
Compose_2
join(body('Select_2'), '')
Right: This removes all characters in "€$ abcdefghijklmnopqrstuvwxyz". Add more characters if needed.
xpath(
xml('<doesnotmatter/>'),
concat(
'translate("',toLower(replace(outputs('Compose_3'), ',', '.')), '", "€$ abcdefghijklmnopqrstuvwxyz", "")'
)
)