I'm trying to validate the following phone number with regex:
1) +415XXXXXXXX
2) 00415XXXXXXXX
3) 41 5XXXXXXXX
4) 41 05XXXXXXXX
5) 05XXXXXXXX
6) 5XXXXXXXX
I tries this expression
^\+?41?\s?0?5\d{8}$
and was able to validate situations (1,3,4), could any one help me to adjust the above one to be able to cover the rest scenarios?