Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

search pattern in C#

- - - - -

  • Please log in to reply
6 replies to this topic

#1
Firoze

Firoze
  • Member
  • 4 posts
  • Joined 14-December 13
  • OS:Vista Home Premium x86
  • Country: Country Flag

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




How to remove advertisement from MSFN

#2
Firoze

Firoze
  • Member
  • 4 posts
  • Joined 14-December 13
  • OS:Vista Home Premium x86
  • Country: Country Flag

nobody can help me?!



#3
bphlpt

bphlpt

    MSFN Addict

  • Patrons
  • 1,968 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag

I can't tell what you are asking about.  Will this help?

 

Cheers and Regards


Posted Image


#4
Firoze

Firoze
  • Member
  • 4 posts
  • Joined 14-December 13
  • OS:Vista Home Premium x86
  • Country: Country Flag

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?



#5
bphlpt

bphlpt

    MSFN Addict

  • Patrons
  • 1,968 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag

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


Posted Image


#6
Firoze

Firoze
  • Member
  • 4 posts
  • Joined 14-December 13
  • OS:Vista Home Premium x86
  • Country: Country Flag

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.



#7
bphlpt

bphlpt

    MSFN Addict

  • Patrons
  • 1,968 posts
  • Joined 12-May 07
  • OS:none specified
  • Country: Country Flag

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, 15 December 2013 - 09:51 AM.

Posted Image





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users