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
1.1k views
1 answer
    When I have something like this: var str = "0123"; var i = 0; str.replace(/(d)/g,function(s){i++;return s; ... function (in this case 0,1,2,3) ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    Is there a simple way I can have php camelcase a string for me? I am using the Laravel framework and I want ... out is the camel casing... See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    handling of zero length matches has changed with python 3.7. Consider the following with python 3.6 (and previous) ... matches with python 3.7? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    At python, I want to check if the input string is in "HH:MM" such as 01:16 or 23:16 or 24:00. ... I achieve this by using regular expression ? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I wrote this regex to match all href and src links in an HTML page; (I know I should be using a parser ... going wrong with the look-behind? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.9k views
1 answer
    I'm trying to write a regex that can extract a command, here's what I've got so far using a ... does the same without negative lookbehind? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I would like to extract text from an html document keeping the links inside it. for example: From this HTML ... do not allow inverse matching. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I am in the need of an regexp that checks if one numerical value is greater then another value. Pretty much like I would ... -9]+[0-9]+$ Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a string: $a = "Name[value]"; How do I get the 'Name' and 'value' portions of string into ... that great at regular expressions. Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    From the php docs J (PCRE_INFO_JCHANGED) The (?J) internal option setting changes the local PCRE_DUPNAMES option. ... warning (not working)? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    This is not one of these "help me build my regex" questions. I have an HTML form input field where a user ... not do anything with that regex. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I have a list of words and I want to match any combination of those words. Assume that I have the words apple, ... that last space at the end? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have the following regex with a positive lookahead: /black(?=hand)[ s]/ I want it to match blackhands or ... Regex101. What am I doing wrong? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.6k views
1 answer
    I would like to check the following: If the last character appended to the stringstream is a comma. If it is ... "extracted_parameters" << "," } See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.4k views
1 answer
    I have a data frame resembling the extract below: Observation Identifier Value Obs001 ABC_2001 54 Obs002 ABC_2002 -2 ... frame the way it is See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have lines in a file that look like this: FA General,1234567^^^^^FA Student Letter- General^<<undefined>>^\ ... .txt What am I missing here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I would like to create a regular expression that matches A, B, and AB, where A and B are quite complex ... without repeating neither A nor B? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    have funciton in my object which is called regularly. parse : function(html) { var regexp = /...some ... match always returns proper result? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Is it possible to return all the repeating and matching subgroups from a single call with a regular expression? For ... and $ cannot be used. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    How to insert newline character after comma in ),( with sed? $ more temp.txt (foo),(bar) (foobar),( ... foofoobar) Why this doesn't work? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.5k views
1 answer
    I need to validate a folder name in c#. I have tried the following regex : ^(.*?/|.*?\)?([^ ... e Driveletter:foldername Can anyone suggest why? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I have the following definition for an Identifier: Identifier --> letter{ letter| digit} Basically I have an ... am I doing wrong here? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    Using JQuery, I'm extracting the value from what is essentially a query box for some data in a MySQL database ... or something I'm overlooking. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.1k views
1 answer
    I can't tell from the Python documentation whether the re.compile(x) function may throw an exception (assuming you ... s) and what those are? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I must insert into table 2 fields (first the Primary key(about the articles) and the second concerns their size ... this point? Thanks & Regards See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I'd like to generate a (series of) regexp(s) from a numeric range. Example: 1013 - 4044 => regexp matches - ... java, clojure, perl... Thanks! See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.2k views
1 answer
    I would like to get the host name of any url for example if i've the following url $url = "http://www.google. ... idea how to do it , Thanks. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
1.3k views
1 answer
    I have a shell command I'd like to extract data from using Powershell. The data I need will always sit between ... ready to give up on this. See Question&Answers more detail:os...
asked Oct 24, 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

...