109 questions
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?
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.
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...
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...
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...
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 ...
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...
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...
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.