Week 2: Regex Help

Hi everyone,

I tried the regex expression shared in the Experiencied challenge but It's not working as expected with apoc.text.regexGroups. It gives no match.

apoc.text.regexGroups(row.Dimensions, '\\(( *[0–9]+(\\.[0–9]+)*( *[xX] *[0–9]+(\\.[0–9]+)*)) *cm\\)')

Any idea about what I may be doing wrong?

Thanks,

Harold

Hi Harold,

Thanks for flagging this - Medium did strange things to the code block. I have made an adjustment to the blog post.

Cheers,

Lju

Yeah, I was just planning to erase the post. I realized that 'minus' char was modified by Medium.

If you're getting stuck, good chance others will too. Thank you for highlighting it :slight_smile: