René's URL Explorer Experiment


Title: 关于图片正则表达式的错误的纠正 · Issue #22 · lzjun567/python_scripts · GitHub

Open Graph Title: 关于图片正则表达式的错误的纠正 · Issue #22 · lzjun567/python_scripts

X Title: 关于图片正则表达式的错误的纠正 · Issue #22 · lzjun567/python_scripts

Description: def func(m): if not m.group(3).startswith("http"): rtn = m.group(1) + get_domain(url) + "/" + m.group(2) + m.group(3) #rtn = m.group(1) + domain + m.group(2) + m.group(3) return rtn else: return m.group(1) + m.group(2) + m.group(3) html ...

Open Graph Description: def func(m): if not m.group(3).startswith("http"): rtn = m.group(1) + get_domain(url) + "/" + m.group(2) + m.group(3) #rtn = m.group(1) + domain + m.group(2) + m.group(3) return rtn else: return m....

X Description: def func(m): if not m.group(3).startswith("http"): rtn = m.group(1) + get_domain(url) + "/" + m.group(2) + m.group(3) #rtn = m.group(1) + domain + m.group(2) + m.group(3) return...

Opengraph URL: https://github.com/lzjun567/python_scripts/issues/22

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"关于图片正则表达式的错误的纠正","articleBody":"```\r\n        def func(m):\r\n            if not m.group(3).startswith(\"http\"):\r\n                rtn = m.group(1) + get_domain(url) + \"/\" + m.group(2) + m.group(3)\r\n                #rtn = m.group(1) + domain + m.group(2) + m.group(3)\r\n                return rtn\r\n            else:\r\n                return m.group(1) + m.group(2) + m.group(3)\r\n        \r\n        html = re.compile(pattern).sub(func, html)\r\n```\r\n\r\n我发现里面有问题,于是修改为\r\n\r\n![qq 20170526000446](https://cloud.githubusercontent.com/assets/1331881/26458883/33174256-41a7-11e7-8b51-dd86edad4287.jpg)\r\n\r\n大家可以看下 https://regex101.com/ 的测试效果\r\n`m.group(2)` 才是匹配那个网址哦\r\n![qq 20170526000553](https://cloud.githubusercontent.com/assets/1331881/26458947/670404aa-41a7-11e7-9c62-bda56d9735aa.jpg)\r\n所以并不是错误的 `m.group(3)`  那个只是匹配到 `”`\r\n\r\n而我看不懂那个正侧替换,查参考资料官方是\r\n`re.sub(pattern, repl, string, count=0, flags=0)`\r\n\r\nrepl是字符串 或者 函数\r\n\r\n","author":{"url":"https://github.com/pendave","@type":"Person","name":"pendave"},"datePublished":"2017-05-25T16:10:34Z","url":"https://github.com/lzjun567/python_scripts/issues/22"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cd2fd27f-c4f0-33e7-c256-b57e0b02795a
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idC8C0:11F7DB:EFEC4:154C9E:6AFC7133
html-safe-nonce6101078f24fd39916310bdf178476a64ac6b7be47025e681f0e92c0f9f185f1d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEMwOjExRjdEQjpFRkVDNDoxNTRDOUU6NkFGQzcxMzMiLCJ2aXNpdG9yX2lkIjoiMzIzMjgwMTA1OTE5NzcxMDY0MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac399e37b8f20d7e80fd437ca519e2ce89e8622451f219cf74c0ef5562d4bf575e
hovercard-subject-tagissue:231385023
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/lzjun567/python_scripts/22/issue_layout
twitter:imagehttps://opengraph.githubassets.com/152c17a25294e34e3ff23821ba405ecb71078840dc322fcf590c7596eff70350/lzjun567/python_scripts/issues/22
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/152c17a25294e34e3ff23821ba405ecb71078840dc322fcf590c7596eff70350/lzjun567/python_scripts/issues/22
og:image:altdef func(m): if not m.group(3).startswith("http"): rtn = m.group(1) + get_domain(url) + "/" + m.group(2) + m.group(3) #rtn = m.group(1) + domain + m.group(2) + m.group(3) return rtn else: return m....
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamependave
hostnamegithub.com
expected-hostnamegithub.com
Nonef0400aaa3adebc3df5b3d70984789caaa7772d54ded54da6be732f4f29987fd8
turbo-cache-controlno-preview
go-importgithub.com/lzjun567/python_scripts git https://github.com/lzjun567/python_scripts.git
octolytics-dimension-user_id3820941
octolytics-dimension-user_loginlzjun567
octolytics-dimension-repository_id81193807
octolytics-dimension-repository_nwolzjun567/python_scripts
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81193807
octolytics-dimension-repository_network_root_nwolzjun567/python_scripts
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release582365d64c0339cca0368fed1331a8172e39e9a1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/lzjun567/python_scripts/issues/22#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flzjun567%2Fpython_scripts%2Fissues%2F22
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Flzjun567%2Fpython_scripts%2Fissues%2F22
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=lzjun567%2Fpython_scripts
Reloadhttps://github.com/lzjun567/python_scripts/issues/22
Reloadhttps://github.com/lzjun567/python_scripts/issues/22
Reloadhttps://github.com/lzjun567/python_scripts/issues/22
lzjun567https://github.com/lzjun567
python_scriptshttps://github.com/lzjun567/python_scripts
Codehttps://github.com/lzjun567/python_scripts
Issues30 (30)https://github.com/lzjun567/python_scripts/issues
Pull requests9 (9)https://github.com/lzjun567/python_scripts/pulls
Actionshttps://github.com/lzjun567/python_scripts/actions
Projectshttps://github.com/lzjun567/python_scripts/projects
Security and qualityhttps://github.com/lzjun567/python_scripts/security
Insightshttps://github.com/lzjun567/python_scripts/pulse
https://github.com/lzjun567/python_scripts
New issuehttps://github.com/login?return_to=https://github.com/lzjun567/python_scripts/issues/22
New issuehttps://github.com/login?return_to=https://github.com/lzjun567/python_scripts/issues/22
关于图片正则表达式的错误的纠正https://github.com/lzjun567/python_scripts/issues/22#top
https://github.com/pendave
pendavehttps://github.com/pendave
on May 25, 2017https://github.com/lzjun567/python_scripts/issues/22#issue-231385023
https://cloud.githubusercontent.com/assets/1331881/26458883/33174256-41a7-11e7-8b51-dd86edad4287.jpg
https://regex101.com/https://regex101.com/
https://cloud.githubusercontent.com/assets/1331881/26458947/670404aa-41a7-11e7-9c62-bda56d9735aa.jpg
Sign up for freehttps://github.com/signup?return_to=https://github.com/lzjun567/python_scripts/issues/22
Sign in to commenthttps://github.com/login?return_to=https://github.com/lzjun567/python_scripts/issues/22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.