Question: I am developing an outlook add-in, i have a form with a button which has a "Close.png" icon the Imagesource of the button is 

```
<Button.Background>
            <ImageBrush ImageSource="pack://siteoforigin:,,,/Resources/Close.png"/>
            </Button.Background>

```

, when i deploy the solution using clickonce and after install it successfully and when i tried to run it from outlook y got the following exception message: "\Addin.Outlook\Addin.Outlook\publish\Resources\Close.png", having Content as build action and copy always as copy to output directory.
I need some help, cheers.

Answer: 
Try this:

```
 if(preg_match_all("/(4\d\d|5([0-4]\d|50))/",$x)) { ... }

```

Test: <https://regex101.com/r/zU4vX8/2>
Unless you have a reason to use a regex, just compare the numbers.

```
if ($x <= 550 && $x >= 400)

```

It'll be faster and easier to read than a regex or using array ranges.