Skip to main content
abhayg0001
May 7, 2021
Question

Regex Issue

  • May 7, 2021
  • 8 replies
  • 0 views

Hi All,

I am using regex match to validate some values but after 20.1 upgrade system is very slow & appian support team is saying it is due to regexmatch. 

Can regexmatch go to long running process or infinite loop( no loop has been use to in regex ).

Any help would be appreciated .

    8 replies

    stefanhelzle0001
    Brainy
    May 7, 2021

    Why not provide some details? What do you want to achieve, what did you try? Do you use regex a lot? How does the regex look like?

    codeblog.jonskeet.uk/.../

    abhayg0001
    May 9, 2021

    Not using regex much. Using only on very specific places.  i.e. regexmatch(
    pattern,
    searchString
    ).

    Place where used, email validation, phone number validation, data restriction ( only number/decimal).

    stefanhelzle0001
    Brainy
    May 9, 2021

    Then you will need to dig deeper. Ask the support team for more details.

    davel001150
    May 13, 2021

    One thing you could try to do to alleviate the problem is to stop using regex wherever there's an out-of-the-box Appian function that does the same thing.  You use it for email validation, I think Appian functions could handle that easily.  Phone number format could also be easily handled.  If you need data to be restricted to an integer, why not just use an a!integerField?  If you need it restricted to a decimal, why not an a!floatingPointField?

    I'm not saying regex is bad; but it simply may be overworked because it's being overutilized.  Try limiting it to those use cases Appian CAN'T support without regex.

    yogeshc0001
    August 3, 2021

    Hi Abhay,

    We are also facing similar issue. Did you find any root cause for this issue ?

    Thanks,

    Yogesh