Skip to main content
5 votes

Regex not working in Sitecore Forms

We faced similar issue after creating a new field validator. Surprisingly, RegularExpressionValidation could not evaluate this.Parameters?.RegularExpression So we created a custom regex validator, //...
Vikrant Punwatkar's user avatar
2 votes

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

To answer your question specifically: Regex.Replace(vacancy.Location, "(?<!&#xa;.*)&#xa;", ", "), where (?<!&#xa;.*) is a negative lookbehind assertion. However, ...
Marcel Gruber's user avatar
1 vote

Regex Validation For Checkbox in Sitecore Form

If you want to make the checkbox required, then on the control you can check it as required. But if there is something else that you want to do using Regex patterns, then you can create your custom ...
Sumit Bhatia's user avatar
  • 5,045
1 vote

Regex validator on display name for hyphen(-) value

You can just join: date + only not hyphens pattern: ^(0[1-9]|[12][0-9]|3[01])[-/.](0[1-9]|1[012])[-/.]((19|20)[0-9][0-9])[^\-]+$ with only not hyphens pattern: (^[^\-]+$) using or | Final regex is:...
Marek Musielak's user avatar
  • 23.8k

Only top scored, non community-wiki answers of a minimum length are eligible