There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Nitin Singla wrote:is one example.. i just need one regexp for checking strings containing values like the one above in str.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Nitin Singla wrote:Format for url:
str="@***.**.**.com"
Nitin Singla wrote:I come up with this :
@([\w-]+\.)+[\w-]*
Please correct me if I am going in wrong direction?
But I am just asking for a help.. not for any humilation for beginners in java...
thanks
Nitin Singla wrote:I come up with this :
@([\w-]+\.)+[\w-]*
Please correct me if I am going in wrong direction?
But I am just asking for a help.. not for any humilation for beginners in java...
thanks
Anrd
"One of the best things you could do is to simplify a larger application into a smaller one by reducing its process and complexity - Fowler"
Nitin Singla wrote:
@www[\.]([\w-]+\.)+com
Is there any suggestions?
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Aniruddh Joshi wrote:Are you trying to validate an email address?
Apache commons validator is pretty good for it.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Nitin Singla wrote:@www[\.]([\w-]+\.)+com
is updated one.
Is there any suggestions?
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Is this the real life? Is this just fantasy? Is this a tiny ad?
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
|