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 :: how to extract a bit from a byte in c++ 
Cpp :: empty 2d array as a member of a class class c++ 
Cpp :: gcc compile multi thread 
Cpp :: 2000pp pp play osu std 
Cpp :: cudaMalloc 
Cpp :: i++ and++i 
Cpp :: SDL_BlitSurface 
Cpp :: c++ Unable to get CMake Tutorial example to compile 
Cpp :: add two constant char pointers c++ 
Cpp :: access the element of vector point2f c++ 
Cpp :: convert c program to c++ online 
Cpp :: JAJA 
Cpp :: find the number of digits of a given integer n . 
Cpp :: 271533778232847 
Cpp :: how to take continuous input in c++ until any value. Like for example(taking input until giving q) 
Cpp :: convert c to C language 
Cpp :: cpp-variadics/problem? 
Cpp :: ex:Roblox 
Cpp :: C++ How to insert and print array elements? 
Cpp :: C++: Methods of code shortening in competitive programming 
Cpp :: deadlock detection in c++coding ninjas 
Cpp :: infix to prefix using cpp linked list program 
Cpp :: is there anything like vector<intx[100] 
Cpp :: typeid to string c++ 
Cpp :: Call db.close() on Button_Click (QT/C++) 
Cpp :: how to write string in c++ 
Cpp :: sort c++ array 
Cpp :: c++ permutation 
Cpp :: how to make an enum in c++ 
Cpp :: 2927260.eps 2927262.jpg 2927263.ai License free.txt License premium.txt 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =