pattern-matching
Perl - regex - Position of first nonmatching character
I want to find the position in a string, where a regular expression stops matching. Simple example: my $x = \'abcdefghijklmnopqrstuvwxyz\';[详细]
2023-04-12 12:05 分类:问答MD5 Java Pattern
I am following BalusC\'s DAO Tutorial, where there is this function: private static String hashMD5IfNecessary(String password) {[详细]
2023-04-11 19:55 分类:问答String pattern matching best practice
Following is the code that doesn\'t work but it describes what I want to do. Could you please recommend the best approach to this problem?[详细]
2023-04-11 11:54 分类:问答Regular expression for delimiters
Need some help with a regular expression How can I write an expression that filters everything between the delimiters (tab, comma, semicolon)? All the preceeding/trailing s开发者_如何学Gopaces must g[详细]
2023-04-11 04:38 分类:问答Vowel datatype in Haskell, is it possible?
I have written the following code to remove vowels from a sentence: main = print $ unixname \"The House\"[详细]
2023-04-10 15:36 分类:问答perl pattern matching one by one and process it
I have a string [something]text1[/something] blah blah [something]text2[/something] I need to write a Perl script to read what is in the [something] tag, process it to \"text-x\", and put it back[详细]
2023-04-10 13:32 分类:问答Haskell - Pattern match(es) are overlapped
test :: String -> String -> Int test\' x y n = n test\' \"\" (y:ys) n = error \"error\" test\' (x:xs) \"\" n = error \"error\"[详细]
2023-04-10 07:15 分类:问答Selecting a part of a string
I have a string stored in variable say $input = 999 success: id:10.123/AVC13开发者_如何学Go231 | ark:/asf4523/2425fsaf[详细]
2023-04-10 00:34 分类:问答Scala: Mix traits and case class in pattern match
I want to match on some case classes. If I don\'t know them, I want to match on a specified trait the 开发者_如何转开发classes have to extend. This looks like[详细]
2023-04-09 22:47 分类:问答OCaml: Iterating through a list and skipping elements if of the wrong constructor
This may seem like an odd thing to do, and you\'re certainly welcome to suggest a better way to do it.[详细]
2023-04-09 05:40 分类:问答