Question: I have a string with two or more numbers. Here are a few examples:

```
"(1920x1080)"
" 1920 by 1080"
"16 : 9"

```

How can I extract **separate** numbers like "1920" and "1080" from it, assuming they will just be separated by one or more non-numeric character(s)?

Answer: 
You can get the string by following 

```
MatchCollection v = Regex.Matches(input, "[0-9]+");
foreach (Match s in v)
            {
                // output is s.Value
            }

```
```
(\d+)\D+(\d+)

```

After that, customize this regex to match the flavour of the language you'll be using.