1👍
✅
This regexp should work:
r'^note/(?:(\d+)/)?$'
The ?
makes the previous group optional.
Source:stackexchange.com
1👍
This regexp should work:
r'^note/(?:(\d+)/)?$'
The ?
makes the previous group optional.