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
{{ message }}
This repository was archived by the owner on Feb 15, 2020. It is now read-only.
BCP47 is indeed a complex specification, but extending it looks relatively lightweight: the U extension is 7 pages long, counting a lot of boilerplate text...
The regular expression mentioned in the document is very complex because it aims at identifying every part of the language tag. But unless I'm misreading the ABNF grammar, if you are only interested in the direction, the regular expression -d-(ltr|rtl|auto) would do the trick.