Changeset 1192 for ValBot/Python/check_interwiki_links.py
- Timestamp:
- Sep 17, 2024, 1:08:26 AM (7 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ValBot/Python/check_interwiki_links.py
r1191 r1192 180 180 for prefix in interwiki_prefixes: 181 181 # Isolate strings that start with "[[prefix:" and end with "|" or "]" 182 iw_link = "\[\[" + prefix +":[^|\]]*(\||\])"182 iw_link = r"\[\[" + prefix + r":[^|\]]*(\||\])" 183 183 for match in re.finditer(iw_link, page_text): 184 184 # Extract just the page title from this regex match
Note:
See TracChangeset
for help on using the changeset viewer.