با سلام
میشه ی validationای بهم بگین که طول اعداد تا 10 رقم رو چک کنه و فقط عدد بگیره؟
ممنونم از راهنمایی های مفیدتون
Use this regular expression to match ten digits only:
@"^\d{10}$"
To find a sequence of ten consecutive digits anywhere in a string, use:
@"\d{10}"
Note that this will also find the first 10 digits of an 11 digit number. To search anywhere in the string for exactly 10 consecutive digits and not more you can use negative lookarounds:
@"(?<!\d)\d{10}(?!\d)"
خیلی ممنونم از راهنماییتون
هیچ کاربری تا کنون از این پست تشکر نکرده است
با ما تماس بگیرید تا در این مسیر همراهتان باشیم :)