Search
 
SCRIPT & CODE EXAMPLE
 

CPP

regex for phone number c++

std::regex r("(d{3}) d{3}-d{4}"); // e.g. "(012) 345-6789" 
auto isValidPhoneNumber = std::regex_match(phone_num_str, r);
Comment

c++ regex to validate indian phone number pattern

Copy Code^([+][9][1]|[9][1]|[0]){0,1}([7-9]{1})([0-9]{9})$
Comment

PREVIOUS NEXT
Code Example
Cpp :: convert vector to set c++ 
Cpp :: c++ replace character in string 
Cpp :: extern __shared__ memory 
Cpp :: convert whole string to uppercase c++ 
Cpp :: max three values c++ 
Cpp :: do you need inline for template in C++ 
Cpp :: capacity() in c++ 
Cpp :: if not defined c++ 
Cpp :: Arduino Sring to const char 
Cpp :: c++ absolute value 
Cpp :: cout char32_t c++ 
Cpp :: add partition mysql 
Cpp :: stack implementation using linked list in cpp 
Cpp :: Array sum in c++ stl 
Cpp :: cpp take lambda as parameter 
Cpp :: cannot open include file: 
Cpp :: all of the stars lyrics 
Cpp :: c++ map iterator 
Cpp :: check if an element is in a map c++ 
Cpp :: switch case with string c++ 
Cpp :: how to clear console c++ 
Cpp :: C++ do...while Loop 
Cpp :: how to do nCr in c++ 
Cpp :: c++ 20 struct initialization 
Cpp :: sleep system function linux c++ 
Cpp :: How to reverse a string in c++ using reverse function 
Cpp :: for loop in c++ 
Cpp :: memcpy library cpp 
Cpp :: round double to 2 decimal places c++ 
Cpp :: c++ vector size 
ADD CONTENT
Topic
Content
Source link
Name
3+7 =