There maybe answers already with this i am not sure. but i want to setup my regex in c# to only check for a specific value. i need to understand regex better in c# any readings
I Currently have the following.
string phoneNumberPattern = @"^\s*(?:\+?(\d{1,3}))?[-. (]*(\d{3})[-. )]*(\d{3})[-. ]*(\d{4})(?: *x(\d+))?\s*$";
Regex phoneNumberRegex = new Regex(phoneNumberPattern);
but i only want it to be true for vaules in the following format.
18764329532
+18764329532
How do i go about fixing this?