I'm really new to Regex, so I'm looking for a way to check if my string starts with a certain regex. I found this on the Internet, however, I can't make it work with a custom regex.
I need to know if a specific line starts with
3.3. XXX
which is how you format German date. So the regex doesn't need to look up only this, but possibly
17.4. XXX
in both cases, I need to know if the input string starts with a date (which can have two possible notations, as stated above). So, for both it'd return true, however, it wouldn't for this:
15G
(for example).
Which regex is good to go for this?