DEV Community

Mahrukh Hassan
Mahrukh Hassan

Posted on

Need help in improving my regex

hi I've to preprocess a column that has comma separated values and i can't apply .split(',\s*') because there are places where commas and spaces shouldn't be separate so therefore i'm looking for a regex pattern.

column:

    0          12noon to 3:30pm, 6:30pm to 11:30pm (Mon-Sun)
    1                                         11 AM to 11 PM

Top comments (1)

Collapse
 
wtfacoconut profile image
Mike S.

Check your StackOverflow post. I just replied with a possible answer. Cheers and good luck.