python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
re.match function doesn't detect line in file
I wanted to detect in which line, the section '' is. I used python to it.
I used re.match(), but it does not detect that obvious line:
import re
filereader = open("template.html", "r&qu...
Eqsz
Votes: 0
Answers: 1
Formatting and replacing the date format in a pandas dataframe column with month
I am trying to replace the date format if present in a pandas dataframe with month in string format but getting error during the process
Code
def date_format(url_link):
match = re.compile(r'[\d]{2...
imhans4305
Votes: 0
Answers: 1
Matching repeating words in a row by regex
I would like to find a replace repeating words in the string, but only if the are next to each other or separated by a space. For example:
"<number> <number>" -> "<num...

Irina Kärkkänen
Votes: 0
Answers: 2
pass regex group to function for substituting
I have a passage of text that contains VALID dates formatted as dd/mm/yyyy. I need to replace all months to their respective month name.
10/05/1999 -> 10 May 1999
I find dates and capture each part...
quokkas-are-cute
Votes: 0
Answers: 0