regular-expression tag

109 questions


1 answers
41 views
0
variables in a regular expression

Cannot use variable in regular expression.I would like to add up the dates for a particular month, but the following would not work.month=input()re.findall(r'month/([0-9]{1,2}), data)What should I do?


1 answers
42 views
0
I want to replace consecutive full-width spaces with one full-width space.

u Name 1 Name 2 Name 3 Name 4In the above string, I would like to replace two or more consecutive full-width spaces with one full-width space.


1 answers
37 views
0
Understanding Regular Expressions in Java for HTML

What are the Java regular expressions?<HTML><HEAD><META http-equiv=Content-Type content=text/html;charset=UTF-8>/HEAD><BODY><DIV style=background-color:text-align:left;wo...


1 answers
47 views
0
How do I replace \(escape) with / in the path?

I would like to replace the (escape) of the specified path with / when the path was specified.For example C:\R\data\covidC:/R/data/covid/I would like to replace it like this.I tried to replace the pat...

2 years ago

1 answers
45 views
0
I want to match punctuation in regular expressions, but I don't want to match punctuation in parentheses.

I would like to split the string by ,I want to match punctuation, but I don't want to match punctuation in parenthesesExample: aa(bb,cc),dd,ff↓(I want to match the '' part)aa(bb,cc)', 'dd', 'ffThe env...

2 years ago

1 answers
54 views
0
I want to verify if it is a valid Twitter URL.

Current StateBased on the tweet URL entered by the user, one tweet was retrieved (on Twitter API).Using bearer tokens with linked What do you want to doI would like to verify if it is a valid Twitter ...


1 answers
47 views
0
Specification differences between eleg_replace and mb_ereg_replace

The formula says ereg_replace is deprecated in PHP 5.3.0, but mb_ereg_replace does not have such a statement.By name, ereg_replace and mb_ereg_replace seem to use the same mechanism, but is it complet...

2 years ago

1 answers
37 views
0
I want to find "from tag to closed tag" in the regular expression.

In the following cases, how should I write a regular expression?There are nearly 100 html files for the purpose of replacing them all at once.<div class=test>There are some tags and sentences.It...

2 years ago

1 answers
41 views
0
Understanding Thumbnail url Retrieval Regular Expressions

We are currently trying to get the url of thumbnails from the RSS of Tena Bookmark using regular expressions.<!DOCTYPE html><head> <metacharset=utf-8></head><body><div...

« - 11 -

© 2024 OneMinuteCode. All rights reserved.