Click here to Skip to main content
15,915,160 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
HI,

I want regular expression to validate the string that starts with \\ (two back slash) and ip address and \ (one back slash) and the directory name with can contain words with spaces and it should now end with back slash

for example

\\172.16.14.143\TDMT
\\172.16.14.143\Ind Results


Please help me. I am in need.
Posted
Comments
Sergey Alexandrovich Kryukov 11-Apr-12 10:54am    
Not a question. What do you try so far? This is a simple exercise; what's the problem?
--SA
VJ Reddy 11-Apr-12 11:10am    
I have credited your comment and given a link for the OP to try.

As SA said in his comment to the question, you can try first.
Expresso is a very good free program to work with regular expressions, which can be downloaded from here:
Expresso - The premier regular expression development tool[^].
 
Share this answer
 
v3
Comments
ProEnggSoft 11-Apr-12 12:44pm    
Good advice. 5ed
VJ Reddy 11-Apr-12 12:47pm    
Thank you.
Sergey Alexandrovich Kryukov 11-Apr-12 20:29pm    
Agree, using Expresso to learn, develop and test different regular expression techniques is a very good idea (actually, an overkill for the OP's trivial problem, but helpful for anyone who needs to use them from time to time). My 5.
--SA
VJ Reddy 11-Apr-12 20:34pm    
Thank you, SA.
jabair 15-Apr-12 5:22am    
thank u i did it by downloading expresso
 
Share this answer
 
Comments
VJ Reddy 11-Apr-12 19:51pm    
More links. 5!
Maciej Los 12-Apr-12 13:37pm    
Thank you!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900