hi,
i need help to research about search pattern,as u know we can use some search pattern for searchoin in our codes like.jpg"|".txt"|".asp"|".css"|"*.cs", I wanna know more about, how many search pattern exist? ...
Firozeh 0 Newbie Poster
Recommended Answers
Jump to PostHi Firozeh, welcome here at DaniWeb.
I guess you need to know more about regular expressions, called Regex
Jump to PostHi Firozeh,
Adding to what ddanbe just said:
If you're searching for files in some directory, you can use the following:System.IO.Directory.GetFiles("dire_path", "*.cs")
EDIT:
You can use two search patterns in the previous command:
*: Zero or more characters.
?: Exactly zero or one character.More …
Jump to PostSo you're asking about files-names search patterns..
First there is the asterisk (*), it matches zero or more characters as follows:
- (*.cs) matches all .cs files (e.g. myclass.cs, yourclass.cs)
- (m*.cs) matches all .cs files that starts with letter m (e.g. moonclass.cs)
and so on...
Second there is the quistion …
All 12 Replies
ddanbe 2,724 Professional Procrastinator Featured Poster
The Diamonds 15 Newbie Poster
Firozeh 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
Fenrir() 52 Newbie Poster
Firozeh 0 Newbie Poster
ddanbe 2,724 Professional Procrastinator Featured Poster
The Diamonds 15 Newbie Poster
Firozeh 0 Newbie Poster
The Diamonds 15 Newbie Poster
Firozeh 0 Newbie Poster
The Diamonds 15 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.