Question: I need help with regexing in Python . I am trying to get the first digit that is not a zero in a text string.

I need help with regexing in Python.

I am trying to get the first digit that is not a zero in a text string.

Here is a subset of what data looks like:

1) 08:30am-3:30pm

2) M, T, W: 7:45am -3:05pm

Expected result from regex is:

1) 8

2) 7

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!