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? ...
as u(dear Fenrir()) said there are many search pattern, how we use them? or it's better ask, are there any spetial role to use them? or not just we use file extention that we want and use them with some spetial characters(like *,.,#,...)? and are thay use just for files? for example can we use some search patterns for searching name or some thing else(except using regular expression)?
So 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 mark (?), it matches zero or one character as follows:
- (???.cs) matches file names that have at most three characters before file extension (e.g. kbs.cs, mr.cs, p.cs)
- (s??p.cs) matches file names that start with letter s and ends with letter p and contains no more than four characters before file extension (e.g soup.cs, soap.cs, sp.cs)
If you want another pattern just give me the specification then I can help you.. I couldn't find any link that provide examples more than what I've already provided.
To be honest, this is not kind of big topic to cover.. you only need to understand the use of astrisk (*) & question mark(?) and everything would follow by its own. Write any combination and test it yourself, it is pretty much easy.
no, i undrestand your meaning about * and ?.it was clear(thanks The Diamonds) as u said, it's easy, no problem. i thought may we can use another characters for search too, except * and ?.thank you for your help. have fune!
Hey, so I wanna ask how I need to create a method who will remove word if in that word is 2 same chars. Example: "Potato" in this word there is a 2 "o" chars so this word will need to be removed. "Forum" in this word there is no ...
Hi I'm having a problem implementing a mini shopping cart drop down in the header to show the user all the products they have in their shopping cart. It seems the only solution for this is Ajax, and I've looked all over and can't find anything that I could possibly ...