Regular expressions and life hacks for the control and monitoring of Ukrainian mobile operators Vodafone, Kyivstar, Lifecell, in the DLP and SIEM system.
- RegEx
- Vodafone
^(?:\+38)?(0(66|95|99)\d{7})$
- Kyivstar
^(?:\+38)?(0(67|68|96|97|98)\d{7})$
- Lifecell
^(?:\+38)?(0[679]3\d{7})$
- Only mobile
^(?:\+38)?(0[5-9][0-9]\d{7})$
- City ukrainian numbers
^(?:\+38)?(0[3-6][1-8]\d{7})$
- All numbers
^(?:\+38)?(0\d{9})$
If you want the plus sign being an optional character, just add the question mark after it:
^(?:(\+)?38)?(0\d{9})$