python check if a string end with a number in a range valid
<p>In my test code, I want to assert that a string ends with a number. Say the number is between [0,3):</p>

<pre><code>assert_equals('/api_vod_asset/v0/assets/0', '/api_vod_asset/v0/assets/number') #valid

assert_equals('/api_vod_asset/v0/assets/1', '/api_vod_asset/v0/assets/number') #valid

assert_equals('/api_vod_asset/v0/assets/5', '/api_vod_asset/v0/assets/number') #invalid
</code></pre>

<p>How to use regular expression or some other technique for <code>number</code> ?</p>