I want to detect where url contains dynamicId or not after courseId.
for example /platform/6323/courses/823273/subject-settings/subject/233224/lesson
. In this path there is dynamic id 233224
after courseId 823273
. How can I detect this with regex. This prefix will always there /platform/6323/courses/823273
but after that anything can be there.
for example:
/platform/6323/courses/823273/subjects/233224/insights
/platform/3712/courses/77850/projects/15148/progress
/platform/3712/courses/77850/projects/attendance/attendance-settings/15148/nodeType/71627/info
this all above example should considered as dynamic route. as there exist id after course id.
and below route are considered as non-dynamic route as there is no id after course id.
/platform/3712/courses/77850/projects/attendance/attendance-settings
/platform/3712/courses/77850/attendance/insights
Want to have regex function for this problem.