Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using rifm for masking time in HH:MM format #133

Open
R-Oscar opened this issue Aug 2, 2022 · 0 comments
Open

Using rifm for masking time in HH:MM format #133

R-Oscar opened this issue Aug 2, 2022 · 0 comments

Comments

@R-Oscar
Copy link

R-Oscar commented Aug 2, 2022

Is it possible to mask time in HH:MM format using rifm?

I need to implement following behavior:

User Input Mask result
39:60 _9:_0
21:00 21:00

I tried using a replace with regex of such kind
/(([012])|[3-9_])((?<=2)(([0-3])|[4-9])|([\d_]))(.)(([0-5])|[6-9_])([\d_])/;
But the problem is that Safari doesn't support positive lookbehind and throws an error

Is there any other way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant