I am new to regix.
I want to get only port number from following line:

**Input:**

```
Install: C:\Program Files\app
Database: postgresql://127.0.0.1:42018/app
Started: 2016-12-28 10:40:05.908000
Lines: 1000000
Version: 4.1
PID: 1736

```

I tried following regex,

```
[\d]{5}

```

But it selects all
42018, 10000 and 90800

From the above input, I want to extract only port number `42018`