Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [regex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
1 answer
34 views

How to replace a link break (&#xa) with a comma using Regex

One of our clients have asked us to replace the first line break (&#xa) with a comma. So far the regex that we have for our location address is this: Location = vacancy.Location.IsNullOrEmpty()...
user13705's user avatar
0 votes
1 answer
49 views

Validate Date entered is in yyyy/mm/dd format in Sitecore Forms

I have a text field in the Sitecore form where the user needs to enter a Date. Currently, I am using Regex Validator that check date in mm/dd/yyyy format. Need support to check if the date is in yyyy/...
Abhivav's user avatar
1 vote
1 answer
159 views

Regex not working in Sitecore Forms

In Sitecore 10 forms, I am trying a very simple regex {"regularExpression":"^(?:\+[0-9]{9,}|[0-9]{10,})$"} This regular expression matches strings that either start with a plus ...
Owais Ahmed's user avatar
0 votes
3 answers
533 views

Regex Validation For Checkbox in Sitecore Form

Is there a way to create a validation with regex pattern in Sitecore Form to check whether a checkbox is checked or not?
Prateek's user avatar
0 votes
1 answer
163 views

Regex validator on display name for hyphen(-) value

I need to create a regex field validator on display name such that it should not have hyphen(-) unless if there is any date in the name. Display Name Validation Error/ Allowed This is a Display Name ...
Yeshwanth's user avatar