expression tag

115 questions


1 answers
40 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
40 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
34 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
44 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...

1 years ago

1 answers
43 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...

1 years ago

1 answers
52 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
43 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...

1 years ago

1 answers
34 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...

1 years ago

1 answers
39 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...


1 answers
71 views
0
"<:]{%>"What does this bearded man look like?

The source code below runs without any problems.Why?What does that mean?int main(){ <:]{%>;; // <-this}

« - 11 - »

© 2024 OneMinuteCode. All rights reserved.