<p>I have a string which is like this:</p>

<p>this is [bracket test] "and quotes test "</p>

<p>I'm trying to write something in Python to split it up by space while ignoring spaces within square braces and quotes. The result I'm looking for is:</p>

<p>['this','is','bracket test','and quotes test '] </p>

Here's a simplistic solution that works with your test input:
```
```
import re
re.findall('\[[^\]]*\]|\"[^\"]*\"|\S+',s)
```
```
This will return any code that matches either
a open bracket followed by zero or more non-close-bracket characters followed by a close bracket,
a double-quote followed by zero or more non-quote characters followed by a quote,
any group of non-whitespace characters
This works with your example, but might fail for many real-world strings you may encounter. For example, you didn't say what you expect with unbalanced brackets or quotes,or how you want single quotes or escape characters to work. For simple cases, though, the above might be good enough.