How to get POST variable using regex like this:

```
$var = $_POST['foo?'];

```

or 

```
$var = $_POST['foo\w{1}'];

```

Edit:

My form has many buttons with separate names: file1, file2, file3. When pressing a button, of course it pass file1 or file2, ... I want to get the value using that name.