regex
string padded with optional blank with max length
I have a problem building a regex. this is a sample of the text: text 123 12345 abc 12def 67 i 89 o 0t 2[详细]
2023-04-12 16:29 分类:问答How to negate inverse a regex expression
I am using Java regex. I have a String as follow String s = \"the location is at {emp.address.street} with the name {emp开发者_JAVA技巧.name},{emp.surname}\";[详细]
2023-04-12 16:04 分类:问答Expression to test for one or more spaces in VBA to find matches in Excel cells
I am trying to use regular expressions in a macro for an Excel document. Here is what I have so far:[详细]
2023-04-12 15:49 分类:问答Regular Expression to validate Data
In our application we need to check if a given string has on开发者_StackOverflowly numbers and is of length 8 .How can we specify this conditions in a regular expression ?bool isValid = Regex.IsMatch([详细]
2023-04-12 15:32 分类:问答preg_match and special characters in keyword not working
I have this: if (preg_match(\"/\\b\".preg_quote($kw_to_search_for).\"\\b/i\", $search_strings[$i])) { // found[详细]
2023-04-12 15:27 分类:问答PHP Regex: Select all except last occurrence
I\'m trying to replace all \\n\'s sans that final one with \\n\\t in order to nicely indent for a recursive function.[详细]
2023-04-12 15:16 分类:问答Using eclipse find and replace all to swap arguments
I have about 100 lines that look like the below: assertEquals(results.get(0).getID(),1); They all start with assertEquals and contain two arguments. Im looking for a way to use find and repl开发者_S[详细]
2023-04-12 15:01 分类:问答How to modify this regular expression to be case insensitive while searching for curse words?
At the moment, this profanity filter finds darn and golly but not Darn or Golly or DARN or GOLLY. List<String> bannedWords = Arrays.asList(\"darn\", \"开发者_开发知识库golly\", \"gosh\");[详细]
2023-04-12 15:00 分类:问答splitting and escaped forward slashes in Python
I have a file containing perl-style regexs of the form /pattern/replace/ that I\'m attempting to read into Python as a list of compi开发者_开发技巧led patterns and their associated replacement strings[详细]
2023-04-12 14:52 分类:问答Read an expression [closed]
Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post.[详细]
2023-04-12 14:42 分类:问答