i want to validate the phone number in pakistan format by using html 5 with pattern attribute.
the valid pakistan phone number format is :
+92 345 1234567
but when i entered this in the input field then it show me the following error: please match the requested format
<!DOCTYPE html>
<html lang="en-us">
<head>
<title> Web Course </title>
</head>
<body>
<form>
Enter your phone number:
<input type="text" pattern="[+][0-9]{2}[][0-9]{3}[][0-9]{7}" />
<input type="submit" value="submit" />
</form>
</body>
</html>