For example,
<`span class = "time> 18:00 ~ 22:00 </span>
I'm trying to extract only the number (time) inside, but it doesn't work with my code.
My code is as follows.
job_time = job.find('td', {"class" : "data"}).find('span',
{"class" : "time"}).text
It doesn't work with .text or .str, but is there any other way?
python
job_time = re.sub(r'[^0-9]', '', job_time)
© 2025 OneMinuteCode. All rights reserved.