dateparser icon indicating copy to clipboard operation
dateparser copied to clipboard

not finding date in multi-line string seperated by newlines - suggest adding functionality

Open jj-github-jj opened this issue 7 months ago • 1 comments

was not finding date in a multi-line string which had a date in it The following code did make dateparser usable but it would be nicer if it already did this without needing the following code maybe an optional argument split_lines='\n' to let user define how to split text so dateparser can succeed in more use cases than failing to find the date

#split into lines and find line with date pattern lines = text.split('\n') for line in lines: date = dateparser.parse(line) if date: break

jj-github-jj avatar Apr 04 '26 21:04 jj-github-jj

Not sure about this one.

AdrianAtZyte avatar Apr 06 '26 12:04 AdrianAtZyte