I've looked all through the forum and also tried altering some of the existing Form Regex in Links and I just can't figure out how to write a regex that prevents special characters in the Title field.
What I would like is to disallow punctuation marks like "!#&$'- from the Title column. I have a javascript that prints the Titles, and anytime someone has used a punctuation in a Title it breaks the javascript.
If someone could explain the logic to me, that would be a big help. I'm looking for a regex that can find a "-" anywhere in the Title and reject it.
This Regex:
looks for those particular patterns, but how would I change it to look for a - ?
Thanks,
Bryan
What I would like is to disallow punctuation marks like "!#&$'- from the Title column. I have a javascript that prints the Titles, and anytime someone has used a punctuation in a Title it breaks the javascript.
If someone could explain the logic to me, that would be a big help. I'm looking for a regex that can find a "-" anywhere in the Title and reject it.
This Regex:
Code:
^(https?:\/\/|ftp:\/\/|news:\/\/|mailto:)looks for those particular patterns, but how would I change it to look for a - ?
Thanks,
Bryan