pattern-matching
Scala Get First and Last elements of List using Pattern Matching
I am doing a pattern matching on a list. Is there anyway I can access the first and last element of the list to compare?[详细]
2023-03-20 14:41 分类:问答Java regex very slow (translate nested quantifiers to possessive quantifiers)
I\'ve found this regular expression to match urls (originally in Javascript by Daring Fireball) which in java works but in some cases is extremly slow:[详细]
2023-03-20 14:00 分类:问答lua variable in pattern match
Im just wondering if it is possible to put a variable in a pattern match in Lua. Like something similar to the following:[详细]
2023-03-20 11:48 分类:问答Regular Expression Match Help
I have a string.. \"I am a number #Number# and I am a letter #Letter# as a test\" I am trying to use a Re开发者_StackOverflowgex.Matches to grab the string #Number# and #Letter# out of the string..[详细]
2023-03-20 09:06 分类:问答Flash Builder / Flex: Making the auto-completion work like Flash Develop's (string patterns)
Is there some way to make the Auto-Completion of Flash Builder / Flex behave similarly, if not exactly the same, as Flash Develop\'s smart way of picking up the patterns in the var/method/property tha[详细]
2023-03-20 04:53 分类:问答How can I programmatically create/detect keyboard runs in passwords?
I\'m looking for a method to create a list of or detect keyboard runs in a password. I can bound my problem with pas开发者_运维问答sword criteria such as length and number of special characters requi[详细]
2023-03-19 15:28 分类:问答regex to detect MathML in textarea in JavaScript
I\'m using CodeMirror and trying to create my own version of the mode-changing demo. I have a <textarea> on which I listen for changes and when there is a change, I want to look at the value in[详细]
2023-03-19 07:30 分类:问答Python pattern-matching. Match 'c[any number of consecutive a's, b's, or c's or b's, c's, or a's etc.]t'
Sorry about the title, I couldn\'t come up with a clean way to ask my question. In Python I would like to match an expression \'c[some stuff]t\', where [some stuff] could be any number of cons开发者_[详细]
2023-03-19 05:45 分类:问答javascript regexp replace not working, but string replace works
I\'m working with jQuery and am trying to write a pattern replace, but it doesn\'t work. I have this:[详细]
2023-03-19 02:24 分类:问答Problem with RegEx OR operator in C#
I want to match a pattern [0-9][0-9]KK[a-z][a-z] which is not prece开发者_运维知识库ded by either of these words[详细]
2023-03-19 01:28 分类:问答