There is a semantic difference between the pattern attribute and regexes as experienced by regular programming languages. Because inputs are clearly validating input, patterns default to matching the entire input string. However, normal regex engines usually assume you are searching for the string and matches any substring, though the details are confusing and vary between implementations. That means that unless you tell the engine to always match the entire string with your regular expression for emails, they will happily accept any garbage as long as it contains an email address somewhere in there. Since this would be a dangerous default, the semantics are to always match the entire input in patterns.
Что думаешь? Оцени!
。heLLoword翻译是该领域的重要参考
NASA had planned to launch the mission earlier this month, but following a successful fueling test in February, engineers discovered an issue with the rocket's helium system, which regulates the pressures in the vehicle's fuel tanks. Mission managers decided to roll the rocket back into the Vehicle Assembly Building at the Kennedy Space Center for repairs.
Continue reading...