Regular Expression Validation problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zerosix
    Member
    • Jan 2024
    • 45

    Regular Expression Validation problem

    ​I have a field named 'Dimension -1-' that requires validation. The input should be considered invalid if it matches the pattern of a positive floating-point number, followed by the lowercase letter 'x', and then another positive floating-point number, where both floating-point numbers use a comma as the decimal separator (example 123,2x12,1). I attempted to use the regular expression \b\d+,\d+x\d+,\d+\b to validate this format, but it's not functioning . Could you assist me in identifying the issue( the regular expression is correct) ?​
  • yuri
    Member
    • Mar 2014
    • 8527

    #2
    A regular expression should start and end with a slash character. Maybe this is a cause of the problem.
    If you find EspoCRM good, we would greatly appreciate if you could give the project a star on GitHub. We believe our work truly deserves more recognition. Thanks.

    Comment


    • zerosix
      zerosix commented
      Editing a comment
      yes, that's it, thank you so much
Working...