Replies: 2 comments 1 reply
-
For simple things, you can use |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks, I looked at For now I resorted to checking if a regular expression matches before trying to parse it as a quantity. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Pint comes with a powerful string parsing that can parse almost arbitrarily complex expressions. In my use case I'd like to limit parsing to a simple "number [unit]" pattern. For example
Is this possible somehow?
Beta Was this translation helpful? Give feedback.
All reactions