You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cookbook gets ideas from the Rust Cookbook... but there are 2 ideas which are questionable.
email... a regex compatible with the RFC822 is rather complex (see https://pdw.ex-parrot.com/Mail-RFC822-Address.html) and doesn't compile with OCaml Re.Perl or Re.Pcre. The one proposed by the Rust cookbook is wrong. It doesn't match my address (because of the tiret in "club-internet` !). But The Emile parser can be a good alternative (and perhaps outside regex ?).
phone number. The Rust recipe is very US centric since there are no international phone rules. (And its regex hardcode the +1 country code).
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The cookbook gets ideas from the Rust Cookbook... but there are 2 ideas which are questionable.
email... a regex compatible with the RFC822 is rather complex (see https://pdw.ex-parrot.com/Mail-RFC822-Address.html) and doesn't compile with OCaml Re.Perl or Re.Pcre. The one proposed by the Rust cookbook is wrong. It doesn't match my address (because of the tiret in "club-internet` !). But The Emile parser can be a good alternative (and perhaps outside regex ?).
phone number. The Rust recipe is very US centric since there are no international phone rules. (And its regex hardcode the +1 country code).
Beta Was this translation helpful? Give feedback.
All reactions