Skip to content

Pattern uis giving error on thie regex: ^[ A-Za-z0-9_@./,#&+-]*$ #90

@dragondz

Description

@dragondz

Hi
I used a call to this input like that :

<txp:com_connect_text class="form-control" name="nom" label="nom" placeholder="Nom du 1er Responsable " required break="" pattern="^[ A-Za-z0-9_@./,#&+-]$"/>

The browswer dont comlained about the pattern but when submitted i got errors from the plugin :

Tag error: <txp:com_connect_text class="form-control" name="raison" label="raison" placeholder="Raison Sociale " required break="" pattern="[ A-Za-z0-9_@./,#&+-]"/> -> Warning: preg_match(): Unknown modifier ',' while parsing form inscription on page default

I tested the pattern on this live preg_match : https://www.phpliveregex.com/#tab-preg-match and there is no complain.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions