2020欧洲杯时间表

Questions tagged [regex]

Regular expressions provide a declarative language to match patterns within strings. They are commonly used for string validation, parsing, and transformation. Since regular expressions are not fully standardized, all questions with this tag should also include a tag specifying the applicable programming language or tool. NOTE: Asking for HTML, JSON, etc. regexes tends to be met with negative reactions. If there is a parser for it, use that instead.

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

How does escaping a literal dot work for sed

The following sed command echo '.' | sed "s/\\./foo/" substitutes . with foo, as expected. However, if we escape the non-alphanumeric . in the above command echo '.' | sed "s/\\\./foo/" prints ...
0
votes
3answers
23 views

How can I get a particular part of a String enclosed between 2 characters using Excel VBA?

I need to write a macro in excel which can help me get a particular part of a string. My string is as follows : PAYPAL *VINAYAKAGGRAWAL 4029357733 I need to extract VINAYAKAGGRAWAL from the above ...
0
votes
1answer
14 views

Regular experssion

I want to creat a regular expression to match these two lines spanning-tree portfast bpdguard enable spanning-tree bpdguard enable my atttemp of using "spanning-tree (?:portfast)? bpdguard enable" ...
-3
votes
0answers
16 views

REGEX Match a String (Google Analytics)

I need to pull out links only have just string with excluding numbers and queries in URL in Google Analytics. so, I need this URL www.site.com/en/rent/cairo/apartments-for-rent/ and exclude these ...
0
votes
1answer
22 views

How can I do a regex pattern for Hibernate validation?

I want to use a regex @Pattern with Hibernate validation. How can I do this regex expression? [a][b][c][d][e] is a number with 13 digits like this: 1831222132132 a - one digit, 1 or 2, nothing else;...
0
votes
1answer
24 views

is there any way to use the SIMILAR TO operator in SQL Server or any other operators like Similar TO operator?

DELETE FROM TABLE_NAME WHERE COLUMN_NAME SIMILAR TO '%(_100|_200|_300)'; Above is a postgresql query. Need an equivalent SQL Server query.
0
votes
0answers
28 views

Use javascript to replace string and following parentheses [duplicate]

I have an input string that has a series of keywords followed by values surrounded by parentheses and I want to remove one specific keyword-value pair in javascript. The string looks something like A(...
-1
votes
0answers
26 views

How to find exact number match within comma separated numbers [duplicate]

I am trying to avoid loop to find matched number on the comma separated numbers. Most of the question was related to comma separated number validation or match all the numbers. such as (\d+(?:,\s*\...
-3
votes
0answers
31 views

Java Regex to extract user comments from string [duplicate]

I want to extract user comments from a string which as date timestamp, user name and comments. Below highlighted in bold is the user comments. 5/27/2020, 3:36:39 PM Bank Analyst: test 5/27/2020, 3:...
-1
votes
0answers
11 views

Unable to write regular expression to capture numbers in Jmeter

<a href=\"#\" onclick=\"acquireManualTask('189234','MyTask ')\"><img src=\"resources/images/go-next.png\" I dont have much knowledge on regex, in above line my dynamic value is 189234. Can ...
-2
votes
0answers
22 views

Java parse string with regex [closed]

Is there any simple way in java to parse a string? Supposing I have a string like this one: label1:0%{Comment1} label2 : 20%{Comment2} label3:50% label4:100% {Comment 3} and a class like: Class ...
-1
votes
0answers
6 views

Build regex form rules [duplicate]

I want to build a regular expression that match only strings with the following rules: Any word and number is allowed Only . and _ characthers are allowed Min size: 4 charact, Max size 40 charact Is ...
0
votes
0answers
19 views

Python Panda Dataframe Error while fetching path from .config file

Trying to create the data frame using (.config) file to fetch the file but getting error during creation of Dataframe from the below file Actual file name:rgf_ltd_060520202 Sample Structure of my ...
1
vote
1answer
14 views

Key error when using regex quantifier python

I am trying to capture words following specified stocks in a pandas df. I have several stocks in the format $IBM and am setting a python regex pattern to search each tweet for 3-5 words following the ...
-2
votes
0answers
19 views

writing a perl script to search for “Internal_scan_pre_shift” and copy data inside {} after pre_shift [duplicate]

The code is like this and i have used the regex to match and print the data i tried perl to extract the data from the paranrhesis "allclock_capture" { C { "all_inputs" = 0 \r6 N 1NNNN; ...

15 30 50 per page
1
2 3 4 5
15138