(http://|ftp://)([\w-\.)(\.)([a-zA-Z]+)
More Regular Expressions
To validate a URL with a regular expression :-
(http://|ftp://)([\w-\.)(\.)([a-zA-Z]+)
(http://|ftp://)([\w-\.)(\.)([a-zA-Z]+)
Related Posts:
C Aptitude Questions...C Questions Check Your Ability In CNote : All the programs are tested under Turbo C/C++ compilers. It is assumed that, Programs run under DOS envi… Read More
Implementation of a queue in C++#includeusing namespace std;class queue{ int front,rear; int item[3]; public: void insert(int); int remove(); void display(… Read More
C code to Check the string has valid identifier or not in.#include#include#includechar keyword[][10]={"auto","break","case","char","const","continue","default","printf", "double","… Read More
Code for matrix problem in C++#includeusing namespace std;#define row 10#define col 10int row1,row2,col1,col2;class matrix{ int a[row][col]; int b[row][col]; int c[row][col… Read More
A linked list program in C++#includeusing namespace std;struct node{ int info; struct node *next; struct node *getnode(); struct node *insert_last(struct no… Read More
0 comments:
Post a Comment