Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 



Sign in to follow this  
Firoze

search pattern in C#

Recommended Posts

hi,

i wanna rssearch about search pattern.....as u know we use some characters as filters in our codes that called Search pattern( like *.jpg"|"*.txt"|"*.asp"|"*.css"|"*.cs",..... )....i need mor information about...PLZ help me

Share this post


Link to post
Share on other sites

THX dear bphlpt , but it's regular expression, i need know about search patterns that work as a filter in codes, specially in C# codes....Are u know about?

Share this post


Link to post
Share on other sites

Sorry, I just don't understand what you are asking. Maybe it's because I don't use C# much if at all lately. Hopefully someone else can understand your needs better than I can. You might also try giving some examples of:

* verbally describe the concept of what you want to do

* show the code you tried

* describe the results you expected

* explain what you got instead

* give links to other examples, tutorials, etc that you looked at that you don't understand

So far, your one sentence questions just don't give enough information, at least for me.

Cheers and Regards

Share this post


Link to post
Share on other sites

well unfortunately i know a little about beacous of that i ask my question here, may some one know more and help me. as i know. for example in C# code, we use some filters(Search pattern) that help u to find different files or etc. it's a kind of regular expression bout not the exact meaning. for example in code bellow,

string pattern = "*.gif|*.jpg";
FileInfo[] files = dir.GetFiles(pattern);

u can see how we use this search pattern. it 's a sample test, i wanna know more than this.

Share this post


Link to post
Share on other sites

I don't understand. What exactly do you want to know? If you want to know more about the options available for "dir.GetFiles", then enter "c# dir.getfiles" in your favorite search engine and read. Or go find a book or tutorial about C# or take a class. Your questions are too vague for us to offer you any more help.

Cheers and Regards

Edited by bphlpt

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×