• Resolved julio.albuquerque

    (@julioalbuquerque)


    Hello
    I’m using Advanced Custom Fields: Field Validated version 1.2.7 with Advanced Custom Fields 4.3.8 version.
    I created a custom field type Validated Field and must validate if the user has entered text in any of these formats: 400,000, 1,200,000, 80,000, etc..
    I’m trying with the validation function and Validation Regular Expression Pattern’m typing ^ \ \ d {1,3} (\ \. \ \ D {3}) * (\ \ d {2})?.
    Surely I’m doing something wrong, can someone please help me?

    Julio

    https://wordpress.org/plugins/validated-field-for-acf/

Viewing 1 replies (of 1 total)
  • Plugin Author doublesharp

    (@doublesharp)

    Hi Julio,

    I think this is an issue with your pattern and not the plugin. Try this one out:

    ^\d{1,3}(,\d{3,3})*

    You can see it working at Regex101.com – good place to test yourself as well to make sure you’re matching what you think you are.

Viewing 1 replies (of 1 total)

The topic ‘Numbers with thousands separator’ is closed to new replies.