can anyone tell me | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

can anyone tell me

can anyone tell me how to change this code the code is working fine upto (www.) after that it has to check all the words and numbers containing like (google) and it has to check for a dot(.) after that it has to end with either (com|in). how can we do that. eg : www.google.com #output = www.google.com www.googlecom #output = [ ] www.google.net # output = [] https://code.sololearn.com/ctgcuF5TZWfR/?ref=app

30th Jul 2020, 7:18 AM
Mr. 12
Mr. 12 - avatar
1 Answer
0
In the code, I put \S+ so, it is printing all the non white space characters. i tried by putting \D\d\w\W+ but it didn't work.
30th Jul 2020, 7:20 AM
Mr. 12
Mr. 12 - avatar