<div>Hi,</div>
<div>I'm trying to write a re pattern to match a list of one or more numbers, each number is in the range of 1-15 value and the numbers are separated by spaces (but there are no spaces at the beginning and end of the string). For instance:</div>

<div> </div>
<div>"3"</div>
<div>"1 14 8"</div>
<div> </div>
<div>but not:</div>
<div> </div>
<div>"22"</div>
<div>" 5 11"</div>
<div> </div>
<div>I've come up with something like this</div>
<div> </div>
<div>re.compile("^((([1-9])|(1[0-8]))( +(?=[1-9]))*)+$")</div>
<div> </div>
<div>but I can't believe this has to be so complicated.</div>
<div>Does anyone know some simpler re pattern to match this kind of string</div>
<div>Many thanks</div>