Can we have regexmatch code for this scenario : I have 4 digits in text format but last 2 digits should be fixed EX:"XX30" here "30" is fixed "XX" can be any numbers in text format
Discussion posts and replies are publicly visible
Not sure of regex but here is a simple way to do it via Appian.
like(1234,"??30")
If you want to use only regex, then you can use any regex builder website and copy the pattern on Appian.
"\d\d30" should do it. You can easily develop and test regex patterns here: https://regex101.com
I use the regex pattern that you mentioned above but its not working in some test cases.
can you please help me.
regexmatch("^[0-9]{2}30$", ri!text)
My pattern fits any 4 digit string of that pattern. You used a number as a test case and it has more than 4 digits. I suggest to use the tool I mentioned to develop your specific pattern.