```
val pattern = "[A-Z]{2,3}[0-9]{4}".r
val extractedData =  pattern.findFirstIn("find ABCD1234")

```

I have the above code to look for valid data.

**Input:**

```
find DTD0001

```

**Expected Output:**

```
DTD0001 

```

**Input:**

```
find ABCD1234

```

**Expected Output:**

i.e. nothing.

Currently, it is returning **BCD1234** which is incorrect.

I want to make it return value only when it has 3 letters + 4 digits. otherwise don't return any value. How to make this correct?