Coined by Jon Postel in the 1980 TCP specification, RFC 761. It began as a network protocol principle but maps directly onto form input design.
A form that only accepts "010-1234-5678" rejects "01012345678" or "010 1234 5678" every time. A liberal form extracts the digits, normalizes internally, and simply confirms it understood.
Leniency isn't unlimited — widen what you accept, but always normalize to one clean format before storing or sending it, or you'll be parsing edge cases forever.
A rejects anything slightly off-format on repeat; B accepts three different inputs and reduces them all to the same normalized number.
When to use
Use this for phone numbers, dates, URLs — anything users might type in several valid formats. Before writing a strict regex, ask whether that one format is really the only valid one.