Skip to content

Regex Validation Issue - Pipe operator "|" is used as rule separator #126

@dominicklee

Description

@dominicklee

Hello, I am having an issue with using Bootstrap Validate for my regex. I must be able to use the pipe operator as part of my regex syntax. Can you please show any alternative to achieve the following:

regex:([0-9]|0[0-9]|1[0-9]|2[0-3]):([0-5][0-9])\s*([AaPp][Mm]):Please enter a valid time

I want to be able to validate text that says "10:30 am" or "9:00am"

Because of the pipe operator. "|" is used as rule separator.

Originally posted by @PascaleBeier in #50 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions