Below is the text I am trying to match

```
3 INFO  ~ [com.Engine:164] italics

```

with

```
(?<=~\s\[)([a-zA-Z0-9\.]+)(?=:)(?<=:)(.*)(?=\])

```

I need to fetch 2 expressions out of it - 

1. `com.Engine`
2. `164`

and I do not need any more matches, not even the `:`.

```
(?<=~\s\[)([a-zA-Z0-9\.]+)(?=:)

```

is returning me `com.Engine` however the total regex doesn't give me any result.

Please help.