Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged regex

0 votes
603 views
1 answer
    I don't understand the difference between  and < in GNU sed and GNU grep. It seems to me  can ... something and something\>. Thank you See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
500 views
1 answer
    Let's imagine you have a string: strLine <- "The transactions (on your account) were as follows: 0 3,000 ... the location of the first number. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
677 views
1 answer
    I have a series of numbers of different lengths (varying from 1 to 6 digits) within some text. I want to ... in a better expression than this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    Looking for a bit of regex help. I'd like to design an expression that matches a string with "foo" OR "bar ... or the other is present? Thanks! See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
671 views
1 answer
    I'm looking for a regular expression that removes illegal characters. But I don't know what the characters will ... 't match the regexp above. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
633 views
1 answer
    I am using the follwoing regular expression (".+@.+\.[a-z]+") Bit it accepts #@#.com as a valid email. What's the pattern I should use? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
724 views
1 answer
    What regex would match any ASCII character in java? I've already tried: ^[\p{ASCII}]*$ but found that it didn't match lots ... >~`[]{}\/+=-\s]*$ See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
640 views
1 answer
    Is it possible to use a grepl argument when referring to a list of values, maybe using the %in% ... character vector with multiple patterns See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
656 views
1 answer
    I'd like to change the following patterns: getFoo_Bar to: getFoo_bar (note the lower b) Knowing neither foo nor ... Maybe sed is not adapted? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
588 views
1 answer
    I've got a situation where I want to get a regexp from the user and run it against a few thousand ... constructor does the compile() itself? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
519 views
1 answer
    I would like to come up with a Vim substitution command to turn multi-line CSS rules, like this one: #main { ... the :%s/ commands to use. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
572 views
1 answer
    In Perl regular expressions, you can surround a subexpression with Q and E to indicate that you want that ... don't have to bother. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
487 views
1 answer
    How do I extract the "program name" from a string. The string will look like this : % O0033(SUB RAD ... of your answers will be appreciated. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
563 views
1 answer
    I can't find any definitive information on what / means in a JavaScript regex. The code replace(/ /g, '' ... where the previous match ended.' See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
570 views
1 answer
    I've been trying to figure out how to replace commas with line-breaks. I've tried using (/r/n/), char(10 ... , not converting it to a line-break See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
469 views
1 answer
    I have a list of possible substrings, e.g. ['cat', 'fish', 'dog']. In practice, the list contains ... elegant Python/regex solution for this. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
685 views
1 answer
    How do I take a string in Perl and split it up into an array with entries two characters long each? I ... array containing F5 3C BB A4 76 See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Laravel does not have a validation for decimal, so I need a regex or other validation method to validate a ... values before or after decimal See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
579 views
1 answer
    I am trying to find a pattern in files. When I get a match using Select-String I do not want the entire ... Powershell equivalent of a grep -o See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
720 views
1 answer
    How can I parse text and find all instances of hyperlinks with a string? The hyperlink will not be in the html ... to reproduce it in python :( See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
525 views
1 answer
    Does anyone know how to write a regexp that only allows a-zA-Z0-9.- (letters, numbers, dots, and dash) BUT ... want to because @ is not allowed. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
465 views
1 answer
    I need a Perl regular expression to match a string. I'm assuming only double-quoted strings, that a " is a ... direction on how to handle this? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
603 views
1 answer
    I have the following setup: -> domain1.com is my main domain and also document root -> domain2.com is another ... but I am currently clueless :/ See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
776 views
1 answer
    I have a list of textual entries that a user can enter into the database and I need to validate these inputs with ... Regex. ^[123][02468]$ See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
779 views
1 answer
    Let's say I have this: $hello = "Hello, is StackOverflow a helpful website!? Yes!"; and I want ... How can I do that? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I need to validate the strength of a password input form field. The requirements are: at least one lowercase char at least one ... ') ]] }); } } See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
507 views
1 answer
    I was posed an interesting question from a colleague for an operational pain point we currently have, and am ... all of the source values? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
576 views
1 answer
    I've made a single simple change to a large number of files that are version controlled in git and I'd like ... diff with the unix diff tool. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...