Multiple Conditions in Validation Regex
问题 I am more or less a regex novice. I tried to get the following conditions into a regex: No White Space at the beginning and at the end of a string Allow all digits Allow spaces, points, brackets, plus and minus Resulted in the following regex: ^\S[\d\/. ()\-+]*\S$ But now i try to apply two more conditions: Allow only one or two + Allow only one ( and one ) My problem is how to merge those two conditions into the existing regex string above cuz excluding + [+]{1,2} and () [(]{1} [)]{1} doesn