I am trying to combine 2 regular expressions into 1 with the OR operator: `|`

I have one that checks for match of a letter followed by 8 digits:

```vb
Regex.IsMatch(s, "^[A-Z]\d{8}$")

```

I have another that checks for simply 9 digits:

```vb
Regex.IsMatch(s, "^\d{9}$")

```

Now, Instead of doing:

```vb
If Not Regex.IsMatch(s, "^[A-Z]\d{8}$") AndAlso
   Not Regex.IsMatch(s, "^\d{9}$") Then 
    ...
End If

```

I thought I could simply do:

```vb
If Not Regex.IsMatch(s, "^[A-Z]\d{8}|\d{9}$") Then
    ...
End If

```

Apparently I am not combining the two correctly and apparently I am horrible at regular expressions. Any help would be much appreciated.

And for those wondering, I did take a glance at [How to combine 2 conditions and more in regex](https://stackoverflow.com/questions/9409171/how-to-combine-2-conditions-and-more-in-regex) and I am still scratching my head.