Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
[SOLVED] Regular expression \d does not work at function find(a,b)
CharlieFirpo
Dear All!
I found that using the 'find()' function eg. at Generate Attributes operator, '\d' regular expression does not work, it throws a Syntax Error.
Eg. finds("10","\d+") throws Error: 'Syntax error'
If I use '[0-9]' the above example works well: finds("10","[0-9]+") will give 'true' value.
Is it a bug?
Thank you!
Find more posts tagged with
AI Studio
RegEx
Accepted answers
All comments
Marco_Boeck
Hi,
because the value you entered is first read by Java, you need to escape the first backslash as well. So if you change your expression to finds("10","\\d+") it will work.
Regards,
Marco
CharlieFirpo
Thank you!!
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups