Sorry not sure how to ask this question but I'm trying to match a ID with a image file, however the file names are formatted as:

```
6993b22905d7a4dae0f6e5ff1212a47c-5.jpeg

```

5 been the ID, so how would I exclude the hash value, the - symbol and display the image using the unique ID instead?

```
<img src="images/uploads/6993b22905d7a4dae0f6e5ff1212a47c-5.jpeg"

```

I would like to have something like:

```
<img src="images/uploads/."IGNOREHASH-".$ID.jpeg"

```