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

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

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

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

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

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