expression tag

115 questions


1 answers
348 views
0
How do you successfully merge the logical lines of two sentences? If you want to merge sentences, how can you do the following with the function of a regular expression or text editor?

I would appreciate it if you could use EmEditor's macro, but if there is any other way, please let me know.1. Number each logical line of a sentence2. Combine multiple sentences for the same logical l...


1 answers
397 views
0
Please tell me the regular expression that detects the same number of more than 10 characters.

As the title suggests, I would like to know a regular expression that detects a numeric string with the same number as 10 characters, such as 0000000000.I've tried many things using the regular expres...

1 years ago

1 answers
299 views
0
Defining a Function to Extract a Specific String in Python Regular Expressions

There is a data frame containing the URL as shown below.I would like to extract the values of certain parameters here and create a new column to replace them.df=pd.DataFrame({'ulr':['https://www.shop....


2 answers
342 views
0
I want to understand regular expressions that check HTML start and end tags.

I'd like to validate the start and end tags of HTML tags in Java, but I'd like to understand the regular expression.(\\s*(?:/\\s*)?[tag name](?:\\s*|\\s+[^>]+))(?:>|(?=<)|$(?!\\n)))I found a ...

1 years ago

1 answers
323 views
0
which of the golang regular expression (regexp string) packages is better

If the regular expression of go is slow, there was an article on the Internet, so did you want to make it similar? Which is faster, string or regexp? (I didn't compare it with the code I told you beca...

1 years ago

2 answers
69 views
0
How to put a space after a comma after a number in a regular expression

Thank you for your help.I would like to put a space after the comma after the number.Therefore, we have specified the following regular expressions:pattern string:(\d+),Search word string:\1, However,...

1 years ago

1 answers
81 views
0
I want to match the nth hyphen.

I want to match the nth hyphen in the regular expression.For example, I would like to know the regular expression that matches and removes the right -fdfd-fd from the second hyphen from the left in th...

1 years ago

1 answers
96 views
0
I want to ban full-width spaces with regular expressions.

This is what I'm using nowregex:/^[Ah-anger 1- -a-zA-Z0-9]+$/Half-width spaces are no longer available, but full-width spaces are not possible.


3 answers
100 views
0
Is it possible to extract a string in which a particular word appears more than once in a regular expression?

Is it possible to extract a string in a regular expression in which a particular word appears more than once?For example, I would like to extract the string of KW, which appears more than once, as sho...


1 answers
97 views
0
What percentage sign do Python regular expressions use?

What does the % part of the code below do?Affected partsl_regex=re.compile(r'^%s*'%character[0])r_regex=re.compile(r'%s*$'%character[0])whole codeimport redef strip_text(text, *character): if characte...

« - 3 - »

© 2024 OneMinuteCode. All rights reserved.