Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2022-03-21 16:14
Flavor·Python

r"
(https?://.*?)(/courses/(?:\d+)/quizzes/(?:\d+))/?(?:take)?
"
gm
Open regex in editor

Description

Turns a URL provided by the user (copied from the address bar) into a url to access the same quiz with the Canvas LMS REST API.

Submitted by anonymous