Skip to main content
February 2, 2023
Question

Regex rule

  • February 2, 2023
  • 5 replies
  • 0 views

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

    5 replies

    harshitb6843
    February 2, 2023

    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. 

    stefanhelzle0001
    February 2, 2023

    "\d\d30" should do it. You can easily develop and test regex patterns here: https://regex101.com

    ayusha3676
    February 2, 2023

    I use the regex pattern that you mentioned above but its not working in some test cases.

    can you please help me.

    February 2, 2023

    regexmatch("^[0-9]{2}30$", ri!text)