Use this tag for questions about testing whether a data structure has a particular shape or contains particular values in certain locations.
How can I count the number of "_" in a string like "bla_bla_blabla_bla"?
c++ string pattern-matchingI have a String that I have to parse for different keywords. For example, I have the String: "I will …
java string pattern-matching stringtokenizerSay I want to copy the contents of a directory excluding files and folders whose names contain the word 'Music'. …
bash shell pattern-matching globUsing awk or sed how can I select lines which are occurring between two different marker patterns? There may be …
shell unix sed awk pattern-matchingIf I have a string like: This.is.a.great.place.too.work. or: This/is/a/great/place/too/…
java regex string pattern-matchingHow do I identify a string using a wildcard? I've found glob2rx, but I don't quite understand how to …
r pattern-matching wildcardI'm currently trying to rexp a string into multiple variables. Example string: ryan_string = "RyanOnRails: This is a test" I've …
ruby regex pattern-matchingAnyone know a good and effective way to search/match for a byte pattern in an byte[] array and then …
c# pattern-matchingOr from the other way around find first non digit character. Do the same functions apply for string and for …
c++ string pattern-matchingI'm doing matching against some case classes and would like to handle two of the cases in the same way. …
scala pattern-matching