TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Smart Lucky
NA
555
637.7k
Regular Expression
Mar 11 2011 5:49 AM
Aslam-o-Alaikum
if
(Regex.IsMatch(
"
testtest"
,
@"
^\w+$"
)) {
//
Do something here
}
Why @ sign is used here....?
string pattern = "^a+$";
if (Regex.IsMatch(content, pattern))
Console.WriteLine("Pattern Found");
else
Console.WriteLine("Pattern Not Found");
and in this @ sign is not used why......?
if
(
Regex.IsMatch
(
inputString, @
"(?<First>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Second>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Third>2[0-4]\d|25[0-5]|[01]?\d\d?)\.(?<Fourth>2[0-4]\d|25[0-5]|[01]?\d\d?)"
))
{
in above expression ?<First> what is the meaning of this and ? whay it is first used...?
Any one who can help me....
Reply
Answers (
7
)
Sending data from one application to another application file
How to add multiple item in a list box from another listbox which have SelectionMode =Multiple