{
  "version": "https://jsonfeed.org/version/1", 
  "title": "\u6b63\u5219\u8868\u8fbe\u5f0f", 
  "description": "", 
  "home_page_url": "https://www.v2ex.com/go/re", 
  "feed_url": "https://www.v2ex.com/feed/re.json", 
  "icon": "https://cdn.v2ex.com/navatar/3988/c7f8/137_large.png?m=1643852696", 
  "favicon": "https://cdn.v2ex.com/navatar/3988/c7f8/137_normal.png?m=1643852696", 
  "items": [
    {
      "author": {
        "url": "https://www.v2ex.com/member/cj323", 
        "name": "cj323", 
        "avatar": "https://cdn.v2ex.com/gravatar/55d8713a4741083ba73747a518298a1f?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1101184", 
      "title": "\u589e\u52a0\u4e00\u70b9\u52a8\u529b\u5b66\u6b63\u5219", 
      "id": "https://www.v2ex.com/t/1101184", 
      "date_published": "2024-12-30T02:18:08+00:00", 
      "content_html": "<p>\u8bf4\u6765\u60ed\u6127\uff0c\u4f5c\u4e3a\u7a0b\u5e8f\u5458\uff0c\u6b63\u5219\u4e00\u76f4\u4e0d\u548b\u4f1a\u3002</p>\n<p>\u53cd\u601d\u4e86\u4e00\u4e0b\u4e5f\u8bb8\u662f\u56e0\u4e3a\u61d2 - \u9700\u8981\u641c\u7d22\u7684\u65f6\u5019\u4e60\u60ef\u65e0\u8111 fzf \uff1b\u6ca1\u6cd5 fzf \u7684\u65f6\u5019\u80fd glob \u5c31 glob \uff0c\u518d\u4e0d\u884c\u5c31 if else \u3002\u3002\u3002</p>\n<p>\u4eca\u5929\u7a81\u7136\u53d1\u73b0\u7ec8\u7aef\u7a0b\u5e8f<code>less</code>\u4e0d\u80fd\u7528 glob \uff0c\u800c<code>less</code>\u8fd9\u4e2a\u7a0b\u5e8f\u53c8\u5f88\u597d\u7528\u4e14\u54ea\u91cc\u90fd\u6709\uff0c\u65e0\u5f62\u4e2d\u7ed9\u4f7f\u7528\u8005\u591a\u4e86\u4e00\u70b9\u52a8\u529b\u5b66\u6b63\u5219\u3002</p>\n<p>\u5927\u5bb6\u8fd8\u6709\u4ec0\u4e48\u65f6\u5019\u5f88\u9700\u8981\u6b63\u5219\u5462\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/rainfy", 
        "name": "rainfy", 
        "avatar": "https://cdn.v2ex.com/gravatar/9873cd0d1af429aac6b0132c05e46213?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1049252", 
      "title": "\u6c42\u6559\uff0c\u5982\u4f55\u7cfb\u7edf\u6027\u7684\u5b66\u4e60\u6b63\u5219\u8868\u8fbe\u5f0f\uff1f", 
      "id": "https://www.v2ex.com/t/1049252", 
      "date_published": "2024-06-13T07:08:07+00:00", 
      "content_html": "<p>\u4e4b\u524d\u90fd\u662f\u770b\u4e86\u7f51\u4e0a\u7684\u4e00\u4e9b\u5165\u95e8\u6559\u7a0b\uff0c\u628a\u4e1a\u52a1\u5b8c\u6210\u5c31\u7b97\u4e86\uff0c\u7ed9\u4e2a\u6b63\u5219\u4e5f\u80fd\u770b\u4e2a 7788 \uff0c\u4f46\u662f\u4e00\u4e9b\u590d\u6742\u7684\u7528\u6cd5\u5c31\u4e0d\u6e05\u695a\u4e86\u3002\u60f3\u7cfb\u7edf\u6027\u7684\u5b66\u4e60\u4e00\u4e0b\uff0c\u8bf7\u95ee\u6709\u4ec0\u4e48\u4e66\u6216\u8005\u89c6\u9891\u6559\u7a0b\u63a8\u8350\u7684\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ABCDiSDR", 
        "name": "ABCDiSDR", 
        "avatar": "https://cdn.v2ex.com/avatar/3e54/f918/514450_large.png?m=1717234189"
      }, 
      "url": "https://www.v2ex.com/t/1045975", 
      "date_modified": "2024-06-03T01:12:16+00:00", 
      "content_html": "\u7528\u7684\u662f\u9b54\u6539\u7248\u7684 sigil \u7248\u672c\u662f 2.0.1.X1A \u3002<br />\u4f7f\u7528^[^&lt;].*[^&gt;]$\u6765\u6807\u8bb0\u6587\u672c\u6bb5\u843d\u4ee5\u7528\u4e8e\u6dfb\u52a0\u6bb5\u843d\u7b26<br />\u4e4b\u524d\u662f\u53ef\u4ee5\u6b63\u5e38\u8bc6\u522b\u7684\uff0c\u73b0\u5728\u4e0d\u77e5\u4e3a\u4f55\u8bc6\u522b\u4e0d\u4e86\u4e86\u3002<br /><br />\u76ee\u524d\u7684\u72b6\u6001\u662f\uff0c\u7b2c\u4e00\u6b21\u5339\u914d\u662f\u6b63\u5e38\u7684\uff0c\u7b2c\u4e8c\u6216\u4ee5\u4e0a\u6b21\u5339\u914d\uff0c\u4f1a\u7531\u4e0a\u4e00\u6bb5\u6bb5\u5c3e\u7684\u7a7a\u767d\u5904\u5f00\u59cb\u6807\u6ce8\u81f3\u672c\u6bb5\u7684\u6587\u672c\u7ed3\u5c3e\u5904\u3002<br />\u95ee\u4e86 GPT \u8bf4\u662f\u6211\u7684\u8bbe\u7f6e\u6709\u95ee\u9898\uff0c\u4f46 sigil \u5e76\u6ca1\u6709\u76f8\u5173\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u8bbe\u7f6e\u3002\u4e14\u7ed9\u4e86\u6b63\u786e\u7684\u5339\u914d\u8868\u8fbe\u5f0f\u3002<br />\u4e2a\u4eba\u5206\u6790\u53ef\u80fd\u7684\u539f\u56e0\u662f\uff0c\u4e4b\u524d\u6211\u662f txt \u6587\u672c\u590d\u5236\u5230\u7684 sigil \u73b0\u5728\u662f pages \u7684\u6587\u672c\u590d\u5236\u5230\u7684 sigil<br />\u6c42\u6307\u6559\u5f02\u5e38\u7684\u539f\u56e0\uff0c\u53ca\u65b9\u6848<br /><br />\u53e6\u5916\u6c42\u4e2a sigil \u641c\u7d22\u6a21\u677f\u914d\u5236\u7684\u6587\u4ef6\u4f4d\u7f6e", 
      "date_published": "2024-06-01T09:34:23+00:00", 
      "title": "sigil \u6b63\u5219\u8868\u8fbe\u5f0f\u7591\u95ee", 
      "id": "https://www.v2ex.com/t/1045975"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1038252", 
      "title": "editplus \u4e2d\u5982\u4f55\u53bb\u6389\u7a7a\u683c", 
      "id": "https://www.v2ex.com/t/1038252", 
      "date_published": "2024-05-07T00:01:31+00:00", 
      "content_html": "editplus \u4e2d\u5982\u4f55\u53bb\u6389\u7a7a\u683c<br /><br /><br />\u53ea\u4fdd\u7559\u3000\u3000\u4e2d\u6587\u4e0e\u4e2d\u6587\u3000\u6570\u5b57\u548c\u6570\u5b57\u3000\u82f1\u6587\u548c\u82f1\u6587\u3000\u82f1\u6587\u548c\u6570\u5b57\u3000\u6570\u5b57\u548c\u82f1\u6587\u4e4b\u95f4\u7684\u7a7a\u683c<br /><br />\u5176\u4f59\u7a7a\u683c\u5168\u90e8\u53bb\u6389\uff0c\uff0c\u8fd9\u79cd\u6b63\u5219\u5e94\u8be5\u600e\u4e48\u5199"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/bug51", 
        "name": "bug51", 
        "avatar": "https://cdn.v2ex.com/avatar/f1c3/bb38/653901_large.png?m=1715484145"
      }, 
      "url": "https://www.v2ex.com/t/1032049", 
      "title": "\u4e34\u95e8\u4e00\u811a\uff0c\u8fd9\u4e2a\u6b63\u5219\u600e\u4e48\u5339\u914d\u4e0d\u4e0a\u5b57\u7b26\u4e32\u554a\uff1f", 
      "id": "https://www.v2ex.com/t/1032049", 
      "date_published": "2024-04-12T10:55:44+00:00", 
      "content_html": "<p>\u76ee\u6807\u5b57\u7b26\u4e32\uff1a</p>\n<pre><code class=\"language-html\">&lt;!--#region REMOVE--&gt;\n&lt;h1&gt;sdfsdf&lt;/h1&gt;\n&lt;h2&gt;sdfsdf&lt;/h2&gt;\n&lt;h1&gt;sdfsdf&lt;/h1&gt;\n&lt;h2&gt;sdfsdf&lt;/h2&gt;\n&lt;h1&gt;sdfsdf&lt;/h1&gt;\n&lt;h2&gt;sdfsdf&lt;/h2&gt;\n&lt;!--#endregion REMOVE--&gt;\n</code></pre>\n<p>\u6b63\u5219\uff1a</p>\n<pre><code>^\\&lt;\\!\\-\\-\\#region REMOVE.*[.|\\n|\\W|\\w]*^\\&lt;\\!\\-\\-\\#endregion REMOVE.*$\n</code></pre>\n<p>\u54ea\u4f4d\u597d\u5fc3\u4eba\u5e2e\u5fd9\u770b\u770b \u591a\u8c22\u591a\u8c22\uff01\uff01</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/oakland", 
        "name": "oakland", 
        "avatar": "https://cdn.v2ex.com/avatar/f4a0/e390/334918_large.png?m=1532421658"
      }, 
      "url": "https://www.v2ex.com/t/1027988", 
      "date_modified": "2024-03-29T15:53:54+00:00", 
      "content_html": "<ol>\n<li>\u6b22\u8fce\u5927\u5bb6\u5728\u8fd9\u7bc7\u6587\u7ae0\u4e0b\u9762\u8bc4\u8bba\u7559\u8a00\uff0c\u7ed9\u51fa\u81ea\u5df1\u5728\u65e5\u5e38 coding \u7684\u8fc7\u7a0b\u4e2d\u5199\u8fc7\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e76\u7ed9\u51fa\u8bf4\u660e\u548c\u793a\u4f8b\uff0c\u6ce8\u660e\u5bf9\u5e94\u7684\u8bed\u8a00\uff0c\u5982\u679c\u80fd\u7ed9\u51fa\u5982\u4f55\u5199\u51fa\u6765\u7684\u8be6\u7ec6\u89e3\u91ca\u66f4\u597d\u3002</li>\n<li>\u6b22\u8fce\u5927\u5bb6\u7559\u8a00\u7ed9\u51fa\u81ea\u5df1\u60f3\u8981\u5b9e\u73b0\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff08\u6ce8\u660e\u8bed\u8a00\uff09\uff0c\u7136\u540e\u7fa4\u53cb\u7ed9 ta \u89e3\u7b54\u3002</li>\n<li>\u6b22\u8fce\u5927\u5bb6\u201c\u4f18\u5316\u201d\u5df2\u7ecf\u7559\u8a00\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002</li>\n<li>\u6211\u5e0c\u671b\u8fd9\u7bc7\u6587\u7ae0\u6210\u4e3a\u6240\u6709 \u201c\u8ba8\u538c\u201d \u548c \u201c\u559c\u7231\u201d \u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u540c\u5b66\u7684\u805a\u96c6\u5730\uff0c\u5e76\u6700\u7ec8\u80fd\u8ba9\u6240\u6709\u4eba\u7406\u89e3\u548c\u719f\u6089\u6b63\u5219\u8868\u8fbe\u5f0f\u3002</li>\n</ol>\n", 
      "date_published": "2024-03-29T01:38:01+00:00", 
      "title": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5408\u96c6\u5e16(\u5e0c\u671b\u672c\u5e16\u80fd\u5b58\u6d3b\u5341\u5e74\u4ee5\u4e0a)", 
      "id": "https://www.v2ex.com/t/1027988"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/laters", 
        "name": "laters", 
        "avatar": "https://cdn.v2ex.com/gravatar/01b6c7ffebf5c401108b51a45c07e929?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1023479", 
      "title": "\u6b63\u5219\u5982\u4f55\u5b8c\u6574\u5339\u914d\u6574\u4e2a\u5355\u8bcd", 
      "id": "https://www.v2ex.com/t/1023479", 
      "date_published": "2024-03-14T01:42:22+00:00", 
      "content_html": "<p>\u6211\u6709\u4e00\u4e2a\u89c4\u5219\u6e05\u5355</p>\n<p>const keywords =  [Stop,.............]</p>\n<pre><code>monaco.languages.register({ id: \"mySpecialLanguage\" });\n\nmonaco.languages.setMonarchTokensProvider(\"mySpecialLanguage\", {\n    tokenizer: {\n        root: [\n            [/(?&lt;!\\w)Stop(?!\\w)/, 'keyword']\n        ],\n    },\n});\n\nmonaco.editor.defineTheme(\"myCoolTheme\", {\n    base: \"vs\",\n    inherit: false,\n    rules: [\n        { token: 'keyword', foreground: 'f1d710' },\n    ],\n    colors: {\n        \"editor.foreground\": \"#000000\",\n    },\n});\n\n\nmonaco.editor.create(document.getElementById(\"container\"), {\n    theme: \"myCoolTheme\",\n    value: `Stop\nQdStop\nqdStop\n11Stop\nStopSS\nStop11\nStopdd \n    `,\n    language: \"mySpecialLanguage\",\n});\n</code></pre>\n<p>\u6211\u671f\u671b\u5c06 <code>keywords</code> \u4e2d\u7684\u6240\u6709\u5355\u8bcd\u9ad8\u4eae\u663e\u793a\uff0c\u5217\u8868\u4e2d\u5305\u542b <code>Stop</code>\uff0c\u4f46\u4ee5 <code>Stop</code> \u7ed3\u5c3e\u7684\u5355\u8bcd\u4ecd\u4f1a\u9ad8\u4eae\u663e\u793a</p>\n<p>Stop \u5f00\u5934\u7684\u6548\u679c\u662f\u6b63\u786e\u7684\uff0c\u4f46\u662f Stop \u7ed3\u5c3e\u7684\u6548\u679c\u662f\u9519\u8bef\u7684\uff0c\u5e94\u8be5\u663e\u793a\u4e3a\u9ed1\u8272\uff0c\u800c\u4e0d\u662f\u9ec4\u8272</p>\n<p>\u5982\u4f55\u5c06\u5176\u7a81\u51fa\u663e\u793a\u4e3a\u4ec5\u7528\u4e8e\u505c\u7528\u8bcd\u7684\u5173\u952e\u5b57\uff0c\u5982\u679c\u524d\u540e\u6709\u5b57\u6bcd\u6216\u5355\u8bcd\uff0c\u5219\u4e0d\u5e94\u7a81\u51fa\u663e\u793a</p>\n<p><img alt=\"\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://i.imgur.com/h2EAuWr.png\"/></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1023159", 
      "title": "\u8bf7\u95ee EM \u6b63\u5219\u5982\u4f55\u5728\u6587\u7ae0\u6700\u524d\u9762\u6dfb\u52a0\u4e00\u6bb5\u8bdd", 
      "id": "https://www.v2ex.com/t/1023159", 
      "date_published": "2024-03-13T03:12:55+00:00", 
      "content_html": " [ A ] \u975e\u8d1f\u4fe1\u606f\u603b\u91cf []  5%<br /> [ A ] \u70b9\u8d5e\u91cf []  5%<br /> [ A ] \u8f6c\u53d1\u91cf []  5%<br /> [ A ] \u8bc4\u8bba\u91cf []  4%<br /> [ A ] \u6307\u6570 []  5%<br /><br /><br /><br />\u5982\u4e0a\u9762\u4f8b\u6240\u793a\u3002EM \u6b63\u5219\u600e\u4e48\u5220\u6389\u7b2c\u4e00\u884c\u7684 [ A ] \uff0c\u5220\u9664\u4e4b\u540e\uff0c\u5728\u6700\u524d\u9762\u6dfb\u52a0\u4e00\u6bb5\u8bdd\uff1a\u672c\u7814\u7a76\u6848\u4f8b\u53c2\u7167\u524d\u6587\u6240\u793a\u3002<br /><br />\u6700\u7ec8\u6548\u679c\u5982\uff1a<br /><br />\u672c\u7814\u7a76\u6848\u4f8b\u53c2\u7167\u524d\u6587\u6240\u793a\u3002<br />\u975e\u8d1f\u4fe1\u606f\u603b\u91cf []  5%<br /> [ A ] \u70b9\u8d5e\u91cf []  5%<br /> [ A ] \u8f6c\u53d1\u91cf []  5%<br /> [ A ] \u8bc4\u8bba\u91cf []  4%<br /> [ A ] \u6307\u6570 []  5%"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/abc0123xyz", 
        "name": "abc0123xyz", 
        "avatar": "https://cdn.v2ex.com/avatar/b2d3/f02a/506371_large.png?m=1760332680"
      }, 
      "url": "https://www.v2ex.com/t/1021089", 
      "title": "\u6c42\u6559\uff0c\u8fd9\u4e2a\u6b63\u5219\u600e\u4e48\u5199", 
      "id": "https://www.v2ex.com/t/1021089", 
      "date_published": "2024-03-06T06:00:41+00:00", 
      "content_html": "<h2>\u6c42\u6559\u6b63\u5219\u548b\u5199\u3002</h2>\n<p>\u6709\u4e00\u6bb5 html \u6587\u672c\uff0c\u5185\u5bb9\u662f\u7269\u7406\u6216\u8005\u5316\u5b66\u9898\u3002</p>\n<p>\u7c7b\u4f3c\u4e8e\u4e0b\u9762\u8fd9\u6837</p>\n<pre><code>\u5b9e\u9a8c\u5ba4\u7528\u56fa\u4f53 NaOH \u914d\u5236 250mL1.00mol/L \u7684 NaOH \u6eb6\u6db2\u3002\u8bf7\u56de\u7b54\u4e0b\u5217\u95ee\u9898\uff1a\n\uff08 1 \uff09\u914d\u5236\u8be5\u6eb6\u6db2\u9700\u79f0\u53d6 NaOH \u56fa\u4f53.................(\u7701\u7565)\n\uff08 2 \uff09\u914d\u5236\u4e0a\u8ff0\u6eb6\u6db2\u65f6\u6b63\u786e\u7684\u64cd\u4f5c\u987a\u5e8f\u662f .................(\u7701\u7565)\n\uff08 3 \uff09\u4ee5\u4e0b\u60c5\u51b5\u4f1a\u5bfc\u81f4\u6240\u914d\u6eb6\u6db2\u6d53\u5ea6\u504f\u4f4e\u7684\u662f\n\uff08 4 \uff09\u901a\u5165\u4e00\u5b9a\u91cf\u7684 CO .................(\u7701\u7565)\n\t.....................\n\uff08 n \uff09\u6240\u52a0\u76d0\u9178\u7684\u6d53\u5ea6\u4e3a\n</code></pre>\n<p>\u60f3\u901a\u8fc7\u6b63\u5219\u8fdb\u884c\u5339\u914d\u5207\u5272\u6210\u6570\u7ec4\uff0c\u5339\u914d\u89c4\u5219\u662f\u62ec\u53f7+\u6570\u5b57\uff0c\u4e0b\u65b9<br/>\n\uff08 1 \uff09\uff08 2 \uff09\uff08 3 \uff09\uff08 4 \uff09.....................\uff08 n \uff09</p>\n<br/>\n<br/><br/><br/><br/>\n<p>\u7136\u540e\u5269\u4e0b\u7684\u5c31\u662f\u5bf9\u6570\u7ec4\u4e2d\u7684\u6bcf\u4e2a\u5143\u7d20\u5355\u72ec\u505a\u4e1a\u52a1\u4e0a\u7684\u5904\u7406</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/phpfpm", 
        "name": "phpfpm", 
        "avatar": "https://cdn.v2ex.com/gravatar/1eadc049a51aaa8bad1b87eec1c9857b?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1019886", 
      "date_modified": "2024-03-03T09:43:15+00:00", 
      "content_html": "<h3>-2 \u672c\u6587\u7528\u5230\u7684\u76f8\u5173\u5de5\u5177\u7684\u7248\u672c</h3>\n<ul>\n<li>Chrome=122.0.6261.69</li>\n<li>Nodejs=v10.19.0</li>\n<li>PHP 7.4.3-4ubuntu2.20 (cli) (built: Feb 21 2024 13:54:34) ( NTS )</li>\n<li>Python 3.8.10</li>\n<li>go version go1.13.8 linux/amd64</li>\n</ul>\n<p>(\u4e0d\u8981\u5410\u69fd\u548c\u8ba8\u8bba\u7248\u672c\uff0c\u9664\u975e\u4f60\u786e\u5b9a\u8fd9\u73a9\u610f\u5728\u65b0\u7248\u672c\u4e0a\u6ca1\u95ee\u9898\uff0c\u751f\u4ea7\u73af\u5883\u968f\u4fbf\u627e\u53f0\u673a\u5668\u6d4b\u7684\uff09</p>\n<h3>-1 \u8fd9\u73a9\u610f\u54ea\u6765\u7684\uff1f</h3>\n<p>\u8fd9\u73a9\u610f\u662f\u6211\u4eec\u524d\u7aef\u540c\u5b66\u95ee GPT \uff0c\u5982\u4f55\u5199\u4e00\u4e2a\u5339\u914d\u7f51\u5740\u7684\u6b63\u5219\u95ee\u5230\u7684\u3002</p>\n<pre><code class=\"language-javascript\">(/^( https?:\\/\\/)?([\\da-z\\.-]+)\\.([a-z\\.]{2,6})([\\/\\w \\.-]*)*\\/?$/).test('https://foo.com/a-long-url-contains-path-and-query-and-anchor/foo/bar/baz?boo=baa#anchor');\n</code></pre>\n<p>*** (\u8fd9\u4e2a\u771f\u7684\u53ef\u4ee5\u6267\u884c\uff0c\u5efa\u8bae\u65b0\u7a97\u53e3 F12 \u8bd5\u4e0b\uff09 ***</p>\n<p>\u4e8e\u662f\uff0c\u771f\u7684\u5339\u914d\u4e00\u6bb5\u6587\u672c\u7684\u65f6\u5019\uff0c\u5c31\u5bfc\u81f4\u6d4f\u89c8\u5668\u5361\u6b7b\u4e86\uff0c\u65e0\u6cd5\u505a\u540e\u7eed\u6e32\u67d3\uff0c\u5728 profiling \u7684\u65f6\u5019\u67e5\u5230\u662f\u8fd9\u4e2a\u6b63\u5219\u7684\u95ee\u9898\u3002</p>\n<h3>0 MVP \u6d4b\u4e00\u4e0b</h3>\n<pre><code class=\"language-javascript\">function testRegexPerformance(repeatCount) {\n    var testString = 'a'.repeat(repeatCount) + '#';\n    var regex = /(\\w*)*$/;\n\n    var startTime = process.hrtime();\n    var result = regex.test(testString);\n    var endTime = process.hrtime(startTime);\n    var executionTime = endTime[0] * 1000 + endTime[1] / 1000000;\n\n    console.log(\"Repeat Count:\", repeatCount);\n    console.log(\"Execution Time:\", executionTime + \" milliseconds\");\n    console.log(\"-----------------------------------\" + result);\n}\n\n// \u6d4b\u8bd5\u4ece 1 \u5230 50 \u7684\u91cd\u590d\u6b21\u6570\nfor (var i = 1; i &lt;= 50; i++) {\n    testRegexPerformance(i);\n}\nRepeat Count: 20\nExecution Time: 35.191223 milliseconds\n-----------------------------------true\nRepeat Count: 21\nExecution Time: 71.355698 milliseconds\n-----------------------------------true\nRepeat Count: 22\nExecution Time: 140.852157 milliseconds\n-----------------------------------true\nRepeat Count: 23\nExecution Time: 287.687666 milliseconds\n-----------------------------------true\nRepeat Count: 24\nExecution Time: 577.368917 milliseconds\n-----------------------------------true\nRepeat Count: 25\nExecution Time: 1148.243059 milliseconds\n-----------------------------------true\nRepeat Count: 26\nExecution Time: 2297.804939 milliseconds\n</code></pre>\n<p>\u5728<code>i=25</code>\u7684\u65f6\u5019\uff0c\u6267\u884c\u65f6\u95f4\u5c31\u5230\u4e86\u79d2\u7ea7\uff0c\u4e4b\u540e\u90fd\u662f\u6307\u6570\u7ea7\u589e\u957f\u3002</p>\n<h3>1 \u7ed3\u679c\u662f true \u662f\u7b26\u5408\u9884\u671f\u7684</h3>\n<p><code>*</code>\u8868\u793a 0 \u4e2a\u6216\u8005\u591a\u4e2a\uff0c\u6ca1\u6709\u4efb\u4f55\u4e00\u4e2a\\w \u4e5f\u662f\u6ca1\u95ee\u9898\u7684</p>\n<h3>2 Regexp.test vs String.match</h3>\n<pre><code class=\"language-javascript\"># \u4e0d\u5339\u914d\n&gt; 'a'.match(/(b)/)\nnull\n\n# \u5339\u914d\n&gt; 'a'.match(/(b)/)\nnull\n\n# \u5339\u914d\n&gt; 'aa'.match(/(a)/)\n[ 'a', 'a', index: 0, input: 'aa', groups: undefined ]\n\n# \u4e0d\u90a3\u4e48\u5339\u914d\n&gt; 'aaa#'.match(/(\\w*)*$/)\n[ '', undefined, index: 4, input: 'aaa#', groups: undefined ]\n\n# \u5339\u914d\uff1f\n&gt; /(\\w*)*$/.test('aaa#')\ntrue\n&gt;\n\n</code></pre>\n<p><a href=\"http://\u8d77\u56e0\u662f\u6211\u65c1\u8fb9\u7684\u540c\u5b66\u8bf4.net\" rel=\"nofollow\">\u8d77\u56e0\u662f\u6211\u65c1\u8fb9\u7684\u540c\u5b66\u8bf4.net</a> \u6ca1\u6709 test \uff0c\u53ea\u6709 match \uff0c\u800c\u4e14\u7ed3\u679c\u662f false</p>\n<p>\u6240\u4ee5\uff0cjs \u91cc\u9762\u5982\u679c\u7528 match \u8bd5\u4e0b\uff0c\u5927\u6982\u6709\u4e09\u79cd\u7ed3\u679c\uff1a</p>\n<ul>\n<li>\u5339\u914d\uff1atest=true</li>\n<li>\u4e0d\u5339\u914d\uff1atest=false</li>\n<li>\u4e0d\u592a\u5339\u914d\uff1atest=true \uff0c\u4f46\u662f match[0]\u662f\u7a7a\uff0c1 \u662f<code>undefined</code></li>\n</ul>\n<h3>3 \u5176\u4ed6\u8bed\u8a00\u7684\u8868\u73b0\uff1f</h3>\n<ul>\n<li>\n<p>js\uff1a\u5339\u914d\uff0c\u8870\u51cf</p>\n</li>\n<li>\n<p>PHP: \u4e0d\u5339\u914d\uff0c\u4e0d\u8870\u51cf</p>\n</li>\n<li>\n<p>Python\uff1aNone(\u4e0d\u5339\u914d\uff09\uff0c\u8870\u51cf</p>\n</li>\n<li>\n<p>Go: \u5339\u914d\uff0c\u4e0d\u8870\u51cf</p>\n</li>\n<li>\n<p>F#: \u5339\u914d\uff0c\u8870\u51cf</p>\n</li>\n</ul>\n<h3>4 \u6240\u4ee5\u662f\u4e3a\u5565\uff1f</h3>\n<p>\u4e8c\u697c\u653e\u6d4b\u8bd5\u7a0b\u5e8f\uff0c\u4e0d\u5360\u5730\u513f\u4e86</p>\n", 
      "date_published": "2024-03-01T10:17:25+00:00", 
      "title": "/(\\w*)*$/.test('aaa#')\u8fd9\u4e2a\u6b63\u5219\u5bfc\u81f4\u6211\u4eec\u7684\u9875\u9762\u70b8\u4e86\u2026\u2026\u4e0d\u540c\u8bed\u8a00\u5c45\u7136\u4e0d\u4e00\u6837", 
      "id": "https://www.v2ex.com/t/1019886"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/jsjcjsjc", 
        "name": "jsjcjsjc", 
        "avatar": "https://cdn.v2ex.com/gravatar/13d33b038f89a9ed0ad29bd412fbbdc0?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/1017679", 
      "date_modified": "2024-02-23T04:34:28+00:00", 
      "content_html": "<p>\u60f3\u628a\u6807\u8bb0\u5b57\u7b26 mark123 \u4e4b\u95f4\u7684\u56de\u8f66\u5220\u9664\n\u6bd4\u5982\u539f\u59cb\u6837\u672c:</p>\n<pre><code>mark123\ntest\ntest\ntest\ntest\ntest\ntest\nmark123\ntest\nmark123\nmark123\nmark123\ntest\ntest\nmark123\nmark123\n</code></pre>\n<p>\u5220\u9664\u7f16\u8f91 mark123 \u4e4b\u524d\u7684\u56de\u8f66,\u5f53\u7136 test \u662f\u968f\u673a\u5b57\u7b26,\u4f46 mark123 \u662f\u786e\u5b9a\u7684</p>\n<pre><code>mark123testtesttesttesttesttest\nmark123test\nmark123\nmark123\nmark123testtest\nmark123\nmark123\n</code></pre>\n<p>\u611f\u8c22</p>\n", 
      "date_published": "2024-02-22T13:36:47+00:00", 
      "title": "\u8fd9\u4e2a\u53ef\u4ee5\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u505a\u5230\u5417?GPT \u804a\u4e86\u534a\u5929\u4e86", 
      "id": "https://www.v2ex.com/t/1017679"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/fgt1t5y", 
        "name": "fgt1t5y", 
        "avatar": "https://cdn.v2ex.com/gravatar/300d732f54b0d7dcbd399619478b889a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/992901", 
      "date_modified": "2023-11-17T12:21:29+00:00", 
      "content_html": "<p>\u5c31\u662f\u50cf\u4e0b\u9762\u8fd9\u6837\uff1a</p>\n<p>\u5c06</p>\n<pre><code>\u7b2c\u4e00\u884c\n\n\u7b2c\u4e8c\u884c\n</code></pre>\n<p>\u8f6c\u6362\u4e3a</p>\n<pre><code>&lt;p&gt;\u7b2c\u4e00\u884c&lt;/p&gt;\n&lt;p&gt;&lt;/br&gt;&lt;/p&gt;\n&lt;p&gt;\u7b2c\u4e8c\u884c&lt;/p&gt;\n</code></pre>\n<p>\u672c\u4eba\u5bf9\u6b63\u5219\u8868\u8fbe\u5f0f\u4e0d\u592a\u4e86\u89e3\uff0c\u7279\u6765 V \u7ad9\u95ee\u95ee\u4e07\u80fd\u7684 V \u53cb\u4eec\u3002</p>\n<p>\u4e0d\u6c42\u6700\u4f18\u89e3\uff0c\u6709\u601d\u8def\u5c31\u597d\u3002</p>\n", 
      "date_published": "2023-11-17T11:55:33+00:00", 
      "title": "[\u6c42\u52a9]\u5982\u4f55\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5c06\u6587\u672c\u6216\u6362\u884c\u7528 p \u6807\u7b7e\u5305\u88f9\u8d77\u6765", 
      "id": "https://www.v2ex.com/t/992901"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/nyxsonsleep", 
        "name": "nyxsonsleep", 
        "avatar": "https://cdn.v2ex.com/gravatar/062fe34b18cfc2655220a1e8dc71c723?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/986124", 
      "date_modified": "2023-10-29T00:10:10+00:00", 
      "content_html": "<p>\u5f7b\u5e95\u5b9e\u73b0\u6548\u679c\uff0c\u8bf7\u4e00\u676f\u5496\u5561\uff08\u7ea2\u5305\uff09\uff0c\u804a\u8868\u8c22\u610f\u3002</p>\n<pre><code>...\nabc.js: actual output: {\n  \"loc\": {\n    \"start\": {\n      \"line\": 1,\n    },\n    \"end\": {\n      \"line\": 1,\n    }\n  }\n}\nError: xxxx\n\nabc.js: actual error:\n...\n</code></pre>\n<p>abc.js \u4e0d\u662f\u56fa\u5b9a\u5185\u5bb9\uff08\u53ef\u80fd\u6709 xxx.js \u7b49\uff09\uff0c</p>\n<p>abc.js \u7684\u6570\u91cf\u4e0d\u6b62\u4e00\u5bf9\uff0c</p>\n<p>actual output \u548c actual error \u662f\u56fa\u5b9a\u5b58\u5728\u5185\u5bb9\u7684\u6709\u4e14\u4ec5\u6709\u4e00\u5bf9\u3002</p>\n<p>\u4fdd\u7559 abc.js \u4fe1\u606f\u3002</p>\n<p>\u9700\u8981\u5339\u914d\u591a\u7ec4</p>\n", 
      "date_published": "2023-10-27T12:20:23+00:00", 
      "title": "\u6b63\u5219\u5339\u914d\uff0c\u600e\u4e48\u5339\u914d\u4e0d\u5b9a\u5185\u5bb9\u7684\u6210\u5bf9\u7684\u4e2d\u95f4\u7684\u5185\u5bb9\u5462\uff1f", 
      "id": "https://www.v2ex.com/t/986124"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sleepingdog", 
        "name": "sleepingdog", 
        "avatar": "https://cdn.v2ex.com/gravatar/837eb5416d0206cba15db551d8d5f217?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/982883", 
      "date_modified": "2023-10-18T00:53:07+00:00", 
      "content_html": "\u6211\u5728 ubuntu \u4e0a\u4f7f\u7528  locate --regex 'bin/(bz|gz|zip)' \u7ed3\u679c\u4ec0\u4e48\u8f93\u51fa\u90fd\u6ca1\u6709\u3002<br />\u6211\u7528 find \u641c\u7d22\uff0c\u660e\u660e\u90fd\u5b58\u5728/usr/bin/zip \u3002", 
      "date_published": "2023-10-17T11:45:20+00:00", 
      "title": "\u6b63\u5219\u8868\u8fbe\u5f0f locate --regex 'bin/(bz|gz|zip)'\u6709\u6ca1\u8bed\u6cd5\u95ee\u9898\uff1f", 
      "id": "https://www.v2ex.com/t/982883"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/960914", 
      "date_modified": "2023-07-30T02:31:48+00:00", 
      "content_html": "em \u6b63\u5219\u6709\u529e\u6cd5\u80fd\u5b9e\u73b0\u5417\uff0c\u6216\u662f\u591a\u6b65\u9aa4\u80fd\u5426\u5b9e\u73b0 <br /><br />\u6548\u679c\u524d<br />\u3016 BH \u3017 AAA \u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017 0.020 \u3016\u3017-0.017<br />\u3016 BH \u3017\u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017(0.027)\u3016\u3017(0.015)<br />\u3016 BH \u3017 BBB \u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017-0.225**\u3016\u3017 0.018**<br />\u3016 BH \u3017\u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017(0.113)\u3016\u3017(0.009)<br />\u3016 BH \u3017 CCC \u3016\u3017-1.087***\u3016\u3017 0.413***\u3016\u3017\u3016\u3017-0.966***\u3016\u3017 1.033***<br />\u3016 BH \u3017\u3016\u3017(0.147)\u3016\u3017(0.081)\u3016\u3017\u3016\u3017(0.175)\u3016\u3017(0.323)<br /><br />\u6548\u679c\u540e<br />\u3016 BH \u3017 AAA \u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017 0.020(0.027)\u3016\u3017-0.017(0.015)<br />\u3016 BH \u3017 BBB \u3016\u3017\u3016\u3017\u3016\u3017\u3016\u3017-0.225**(0.113)\u3016\u3017 0.018**(0.009)<br />\u3016 BH \u3017 CCC \u3016\u3017-1.087***(0.147)\u3016\u3017 0.413***(0.081)\u3016\u3017\u3016\u3017-0.966***(0.175)\u3016\u3017 1.033***(0.323)", 
      "date_published": "2023-07-30T02:28:03+00:00", 
      "title": "\u4e0a\u4e0b\u4e24\u884c\u5185\u5bb9\u5408\u5e76\u6b63\u5219\u6709\u529e\u6cd5\u80fd\u5b9e\u73b0\u5417", 
      "id": "https://www.v2ex.com/t/960914"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ccjy778899", 
        "name": "ccjy778899", 
        "avatar": "https://cdn.v2ex.com/gravatar/04ea730db16cb682862ab378539992e6?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/952731", 
      "title": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5982\u4f55\u622a\u53d6\u4e00\u4e2a\u5b8c\u6574\u62ec\u53f7\u7684\u5185\u5bb9", 
      "id": "https://www.v2ex.com/t/952731", 
      "date_published": "2023-06-29T07:43:48+00:00", 
      "content_html": "\u5982\u4f55\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u9a8c\u8bc1\u83b7\u53d6\u4ee5\u4e0b\u8ba1\u7b97\u8fc7\u7a0b\u4e2d\u7684\u7b2c\u4e00\u4e2a \u8ba1\u7b97\u5143\u7d20\uff1aSum(avg \uff08 col1 \uff09+avg \uff08 col2 \uff09)+sum(a1+a2)   \u3002\u8fd4\u56de\uff1aSum \uff08 avg \uff08 col1 \uff09+avg \uff08 col2 \uff09\uff09<br />\u6ce8\u610f\uff0c\u6211\u51fd\u6570\u53ef\u4ee5\u968f\u610f\u5d4c\u5957\u3002<br />\u95ee\u8fc7 gpt \uff0c\u7ed9\u4e0d\u51fa\u7b54\u6848\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/JinTianYi456", 
        "name": "JinTianYi456", 
        "avatar": "https://cdn.v2ex.com/avatar/b0df/2a83/513065_large.png?m=1762146875"
      }, 
      "url": "https://www.v2ex.com/t/938721", 
      "title": "\u6709\u5bf9 posix-\u6b63\u5219 \u6709\u7814\u7a76\u7684\u5417\uff1f\u95ee\u4e0b", 
      "id": "https://www.v2ex.com/t/938721", 
      "date_published": "2023-05-09T14:09:08+00:00", 
      "content_html": "<h3>\u5c31\u53c2\u8003\u8fd9\u5427: <a href=\"https://dev.mysql.com/doc/refman/5.7/en/regexp.html\" rel=\"nofollow\">https://dev.mysql.com/doc/refman/5.7/en/regexp.html</a></h3>\n<h3><code>[.characters.]</code></h3>\n<blockquote>\n<p>Within a bracket expression (written using [ and ]), matches the sequence of characters of that collating element.</p>\n</blockquote>\n<pre><code class=\"language-text\">mysql&gt; SELECT '~' REGEXP '[[.~.]]';                     -&gt; 1\n\n\u4e3a\u5565\u4e0d\u662f\u5355[\uff1f\u7ed3\u679c\u4e5f\u662f 1 \u5440\nmysql&gt; SELECT '~' REGEXP '[.~.]';\n</code></pre>\n<h3><code>[=character_class=]</code></h3>\n<blockquote>\n<p>Within a bracket expression (written using [ and ]), [=character_class=] represents an equivalence class.</p>\n</blockquote>\n<p>\u91cc\u9762\u6ca1\u4e3e\u4f8b\uff0c\u53ef\u5426\u5199\u4e2a\u4f8b\u5b50\uff1f</p>\n<h3><code>[:character_class:]</code></h3>\n<blockquote>\n<p>Within a bracket expression (written using [ and ]), [:character_class:] represents a character class that matches all characters belonging to that class.</p>\n</blockquote>\n<pre><code class=\"language-text\">mysql&gt; SELECT 'justalnums' REGEXP '[[:alnum:]]+';       -&gt; 1\n\n\u4e3a\u5565\u4e0d\u662f\u5355[\uff1f\u7ed3\u679c\u4e5f\u662f 1 \u5440\nmysql&gt; SELECT 'justalnums' REGEXP '[:alnum:]+';\n</code></pre>\n<h3><code>[[:&lt;:]], [[:&gt;:]]</code></h3>\n<blockquote>\n<p>These markers stand for word boundaries. They match the beginning and end of words, respectively.</p>\n</blockquote>\n<p>\u600e\u4e48\u9700\u8981 2 \u4e2a\u6765\u5206\u522b\u8868\u793a\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/930934", 
      "title": "editplus \u6c42\u4e2a\u5168\u9009\u6b63\u5219\u5ffd\u7565\u524d\u9762\u7684\u7b26\u53f7\u53ca\u7b26\u53f7\u5185\u7684\u5185\u5bb9", 
      "id": "https://www.v2ex.com/t/930934", 
      "date_published": "2023-04-09T02:26:15+00:00", 
      "content_html": "<p>\uff3b\u7f8e\uff3d\u67cf\u57f9\u6587\uff0c\u5f20\u4e91\ue010\u6570\u5b57\u7ecf\u6d4e\u3001\u4eba\u53e3\u7ea2\u5229\u4e0b\u964d\u4e0e\u4e2d\u4f4e\u6280\u80fd\u52b3\u52a8\u8005\u6743\u76ca\uff3b J \uff3d\ue010\u7ecf\u6d4e\u7814\u7a76\uff0c2021 \uff0c56(5):91-108\ue010\ue004\n\uff08\u4e2d\uff09\u66f9\u7389\u4e66\uff0c\u697c\u4e1c\u73ae\ue010\u8d44\u6e90\u9519\u914d\u3001\u7ed3\u6784\u53d8\u8fc1\u4e0e\u4e2d\u56fd\u7ecf\u6d4e\u8f6c\u578b\uff3b J \uff3d\ue010\u4e2d\u56fd\u5de5\u4e1a\u7ecf\u6d4e\uff0c2012(10):5-18\ue010\ue004\n\uff08\u6cd5\uff09\u9648\u68a6\u6839\uff0c\u5468\u5143\u4efb\ue010\u6570\u5b57\u4e0d\u5e73\u7b49\u7814\u7a76\u65b0\u8fdb\u5c55\uff3b J \uff3d\ue010\u7ecf\u6d4e\u5b66\u52a8\u6001\uff0c2022(4):123-139\ue010\ue004\n(\u6cd5)\u9648\u68a6\u6839\uff0c\u5468\u5143\u4efb\ue010\u6570\u5b57\u4e0d\u5e73\u7b49\u7814\u7a76\u65b0\u8fdb\u5c55\uff3b J \uff3d\ue010\u7ecf\u6d4e\u5b66\u52a8\u6001\uff0c2022(4):123-139\ue010\ue004\n\u3014\u65e5\u3015\u9648\u6587\uff0c\u5434\u8d62\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u3001\u6570\u5b57\u9e3f\u6c9f\u4e0e\u57ce\u4e61\u5c45\u6c11\u6536\u5165\u5dee\u8ddd\uff3b J \uff3d\ue010\u5357\u65b9\u7ecf\u6d4e\uff0c2021(11):1-17\ue010\ue004\n\u3016 JP6 \u3017\u674e\u6653\u949f\uff0c\u674e\u4fca\u96e8\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u5bf9\u57ce\u4e61\u6536\u5165\u5dee\u8ddd\u7684\u5f71\u54cd\u7814\u7a76\uff3b J \uff3d\ue010\u519c\u4e1a\u6280\u672f\u7ecf\u6d4e\uff0c2022(2):77-93\ue010\ue004\n[\u6cd5] \u9648\u6587\uff0c\u5434\u8d62\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u3001\u6570\u5b57\u9e3f\u6c9f\u4e0e\u57ce\u4e61\u5c45\u6c11\u6536\u5165\u5dee\u8ddd\uff3b J \uff3d\ue010\u5357\u65b9\u7ecf\u6d4e\uff0c2021(11):1-17\ue010\ue004\n\u674e\u51ef\u6770\uff0c\u66f2\u5982\u6653\ue010\u6280\u672f\u8fdb\u6b65\u5bf9\u78b3\u6392\u653e\u7684\u5f71\u54cd-\u57fa\u4e8e\u7701\u9645\u52a8\u6001\u9762\u677f\u7684\u7ecf\u9a8c\u7814\u7a76\uff3b J \uff3d\ue010\u5317\u4eac\u5e08\u8303\u5927\u5b66\u5b66\u62a5\uff08\u793e\u4f1a\u79d1\u5b66\u7248\uff09\uff0c2012 \uff0c\uff08 5 \uff09\uff1a129-139\ue010\ue004\n\u7530\u9e3d\uff0c\u5f20\u52cb\ue010\u6570\u5b57\u7ecf\u6d4e\u3001\u975e\u519c\u5c31\u4e1a\u4e0e\u793e\u4f1a\u5206\u5de5\uff3b J \uff3d\ue010\u7ba1\u7406\u4e16\u754c\uff0c2022 \uff0c38(5):72-84\ue010\ue004\n\uff3b\u6fb3\u5927\u5229\u4e9a\uff3d\u67cf\u57f9\u6587\uff0c\u5f20\u4e91\ue010\u6570\u5b57\u7ecf\u6d4e\u3001\u4eba\u53e3\u7ea2\u5229\u4e0b\u964d\u4e0e\u4e2d\u4f4e\u6280\u80fd\u52b3\u52a8\u8005\u6743\u76ca\uff3b J \uff3d\ue010\u7ecf\u6d4e\u7814\u7a76\uff0c2021 \uff0c56(5):91-108\ue010\ue004\n\uff08\u6fb3\u5927\u5229\u4e9a\uff09\u66f9\u7389\u4e66\uff0c\u697c\u4e1c\u73ae\ue010\u8d44\u6e90\u9519\u914d\u3001\u7ed3\u6784\u53d8\u8fc1\u4e0e\u4e2d\u56fd\u7ecf\u6d4e\u8f6c\u578b\uff3b J \uff3d\ue010\u4e2d\u56fd\u5de5\u4e1a\u7ecf\u6d4e\uff0c2012(10):5-18\ue010\ue004\n\uff08\u6fb3\u5927\u5229\u4e9a\uff09\u9648\u68a6\u6839\uff0c\u5468\u5143\u4efb\ue010\u6570\u5b57\u4e0d\u5e73\u7b49\u7814\u7a76\u65b0\u8fdb\u5c55\uff3b J \uff3d\ue010\u7ecf\u6d4e\u5b66\u52a8\u6001\uff0c2022(4):123-139\ue010\ue004\n(\u6cd5\u56fd)\u9648\u68a6\u6839\uff0c\u5468\u5143\u4efb\ue010\u6570\u5b57\u4e0d\u5e73\u7b49\u7814\u7a76\u65b0\u8fdb\u5c55\uff3b J \uff3d\ue010\u7ecf\u6d4e\u5b66\u52a8\u6001\uff0c2022(4):123-139\ue010\ue004\n\u3014\u65e5\u672c\u3015\u9648\u6587\uff0c\u5434\u8d62\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u3001\u6570\u5b57\u9e3f\u6c9f\u4e0e\u57ce\u4e61\u5c45\u6c11\u6536\u5165\u5dee\u8ddd\uff3b J \uff3d\ue010\u5357\u65b9\u7ecf\u6d4e\uff0c2021(11):1-17\ue010\ue004\n[\u6cd5\u56fd] \u9648\u6587\uff0c\u5434\u8d62\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u3001\u6570\u5b57\u9e3f\u6c9f\u4e0e\u57ce\u4e61\u5c45\u6c11\u6536\u5165\u5dee\u8ddd\uff3b J \uff3d\ue010\u5357\u65b9\u7ecf\u6d4e\uff0c2021(11):1-17\ue010\ue004\n\u3016 JP2 \u3017\u674e\u6653\u949f\uff0c\u674e\u4fca\u96e8\ue010\u6570\u5b57\u7ecf\u6d4e\u53d1\u5c55\u5bf9\u57ce\u4e61\u6536\u5165\u5dee\u8ddd\u7684\u5f71\u54cd\u7814\u7a76\uff3b J \uff3d\ue010\u519c\u4e1a\u6280\u672f\u7ecf\u6d4e\uff0c2022(2):77-93\ue010\ue004\n\u7530\u9e3d\uff0c\u5f20\u52cb\ue010\u6570\u5b57\u7ecf\u6d4e\u3001\u975e\u519c\u5c31\u4e1a\u4e0e\u793e\u4f1a\u5206\u5de5\uff3b J \uff3d\ue010\u7ba1\u7406\u4e16\u754c\uff0c2022 \uff0c38(5):72-84\ue010\ue004\n\u201c\u5317\u4eac\u5e08\u8303\u5927\u5b66\u5b66\u62a5\u201d\uff08\u793e\u4f1a\u79d1\u5b66\u7248\uff09\uff0c2012 \uff0c\uff08 5 \uff09\uff1a129-139\ue010\ue004</p>\n<p>\u5ffd\u7565\u524d\u9762\u7684\u5404\u79cd\u62ec\u53f7\u56fd\u7c4d\uff08\u5305\u62ec\u62ec\u53f7\uff0c\u5f15\u53f7\uff0c\u3016 JP2 \u3017\u7b49\uff0c\uff09\uff0c\u6709\u65b9\u6cd5\u80fd\u5b9e\u9a8c\u5417\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/cpxjaz", 
        "name": "cpxjaz", 
        "avatar": "https://cdn.v2ex.com/gravatar/84292d09812d5108dde8601e671526ef?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/916999", 
      "date_modified": "2023-02-17T09:19:52+00:00", 
      "content_html": "<p>\u5982\u9898</p>\n", 
      "date_published": "2023-02-17T09:19:03+00:00", 
      "title": "\u5404\u4f4d\u8001\u54e5\uff0c\u6b63\u5219\u600e\u4e48\u5199\u80fd\u6392\u9664\u4e00\u4e2a\u6216\u591a\u4e2a\u7279\u5b9a\u7684 IP\uff0c\u5339\u914d\u5269\u4f59\u6240\u6709 IP\uff08\u6216\u8005\u8bf4\u662f\u5426\u53ef\u4ee5\u5b9e\u73b0\uff09", 
      "id": "https://www.v2ex.com/t/916999"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/f9EHtxE2UtX3fG3", 
        "name": "f9EHtxE2UtX3fG3", 
        "avatar": "https://cdn.v2ex.com/gravatar/d687ed6707b9db28331bf61262e8ec71?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/914982", 
      "title": "\u60f3\u8bf7\u6559\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f,\u8fd9\u6b63\u5219\u80fd\u505a\u5417", 
      "id": "https://www.v2ex.com/t/914982", 
      "date_published": "2023-02-10T09:44:49+00:00", 
      "content_html": "<h1>\u80cc\u666f</h1>\n<ul>\n<li>\u60f3\u8981\u4e00\u5757\u4ee3\u7801\u4e2d\u62bd\u53d6\u51fa \u51fd\u6570\u8fd4\u56de\u503c, \u51fd\u6570\u540d \u51fd\u6570\u7c7b\u578b,\u7528\u6765\u7f16\u51fa main \u51fd\u6570</li>\n</ul>\n<h1>\u60f3\u8981\u7684\u529f\u80fd,\u8fd9\u80fd\u7528\u6b63\u5219\u505a\u5417?</h1>\n<ul>\n<li>\u53ef\u4ee5\u5339\u914d c++\u51fd\u6570\u7684 \u8fd4\u56de\u503c\u7c7b\u578b\u3001\u51fd\u6570\u540d\u3001\u53c2\u6570\u7c7b\u578b\u5217\u8868</li>\n<li>\n\u8fd4\u56de\u503c\u7c7b\u578b\u3001\u53c2\u6570\u7c7b\u578b\u4f1a\u6709:<ul>\n<li>\n\u7c7b\u578b 1:<ul>\n<li>int</li>\n<li>char</li>\n<li>string</li>\n<li>TreeNode *</li>\n<li>Node *</li>\n</ul>\n</li>\n<li>vector&lt;\u7c7b\u578b 1&gt;</li>\n<li>vector&lt;\u7c7b\u578b 1&gt; &amp;</li>\n<li>vector&lt;vector&lt;\u7c7b\u578b 1&gt;&gt;</li>\n<li>vector&lt;vector&lt;\u7c7b\u578b 1&gt;&gt; &amp;</li>\n</ul>\n</li>\n</ul>\n<h1>\u95ee\u4e86 OpenAI \u611f\u89c9\u4e0d\u592a\u5bf9,\u6bcf\u6b21\u95ee\u7ed3\u679c\u90fd\u4e0d\u4e00\u6837</h1>\n<pre><code>Here's a regular expression that matches the return value type, function name, and parameter type in C++:\n\n(int|vector&lt;int&gt;|vector&lt;vector&lt;int&gt;&gt;|string|vector&lt;string&gt;|vector&lt;vector&lt;string&gt;&gt;|ListNode\\*|vector&lt;ListNode\\*&gt;|char|vector&lt;char&gt;|vector&lt;vector&lt;char&gt;&gt;|TreeNode\\*|Node\\*)\\s(\\w+)\\((.*)\\)\nThe regular expression uses the following components:\n\n(int|vector&lt;int&gt;|vector&lt;vector&lt;int&gt;&gt;|string|vector&lt;string&gt;|vector&lt;vector&lt;string&gt;&gt;|ListNode\\*|vector&lt;ListNode\\*&gt;|char|vector&lt;char&gt;|vector&lt;vector&lt;char&gt;&gt;|TreeNode\\*|Node\\*) matches the return value type, which can be one of the specified types.\n\n\\s matches a whitespace character.\n\n(\\w+) matches the function name, which is one or more word characters.\n\n\\(.*\\) matches the parameter list, which is zero or more characters enclosed in parentheses.\n</code></pre>\n<h1>\u4e3e\u4e2a\u4f8b\u5b50</h1>\n<pre><code>vector&lt;int&gt; f(vector&lt;int&gt;&amp; a, TreeNode *b, int d){\n\n}\n\n</code></pre>\n<ul>\n<li>\u63d0\u53d6\u7c7b\u578b\u4e3a\u4e86\u521d\u59cb\u5316</li>\n</ul>\n<pre><code>    vector&lt;int&gt; arg1 = {};\n    TreeNode * arg2 = new TreeNode(xxx);\n    int arg3 = 0;\n    vector&lt;int&gt; result = f(arg1, arg2, arg3);\n</code></pre>\n<h1>\u5982\u679c\u4e0d\u80fd\u505a,\u90a3\u53ea\u80fd\u5199\u4ee3\u7801\u786c\u5339\u914d\u4e86?</h1>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/vazo", 
        "name": "vazo", 
        "avatar": "https://cdn.v2ex.com/avatar/3ca4/7c70/221727_large.png?m=1668925495"
      }, 
      "url": "https://www.v2ex.com/t/912602", 
      "title": "\u4f7f\u7528\u6b63\u5219.*ab.*\u641c\u7d22\u4e8c\u8fdb\u5236\u6587\u4ef6(pdf \u683c\u5f0f),\u641c\u4e0d\u5230 ab \u4f46\u662f.*a.*\u53ef\u4ee5\u627e\u5230 a,\u9664\u4e86 ab \u8fd8\u6709\u522b\u7684\u6b63\u5219\u5199\u6cd5\u4e48?", 
      "id": "https://www.v2ex.com/t/912602", 
      "date_published": "2023-02-02T07:36:42+00:00", 
      "content_html": ""
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/lry", 
        "name": "lry", 
        "avatar": "https://cdn.v2ex.com/avatar/236b/690e/246594_large.png?m=1673801340"
      }, 
      "url": "https://www.v2ex.com/t/908767", 
      "title": "\u8fd9\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u600e\u4e48\u5199\uff0c\u8981\u4e48\u5728\u5f00\u5934\uff0c\u8981\u4e48\u524d\u9762\u6709\u7a7a\u683c", 
      "id": "https://www.v2ex.com/t/908767", 
      "date_published": "2023-01-13T10:59:54+00:00", 
      "content_html": "<p>\u8981\u5339\u914d <code>@</code> \u7b26\u53f7</p>\n<p><code>@any</code> =&gt; true<br/>\n<code>xxx @any</code> =&gt; true<br/>\n<code>xxx@any</code> =&gt; false</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/CUPAIR", 
        "name": "CUPAIR", 
        "avatar": "https://cdn.v2ex.com/avatar/f8b5/0732/466784_large.png?m=1665719609"
      }, 
      "url": "https://www.v2ex.com/t/905419", 
      "title": "\u6c42\u52a9\uff1a\u6b63\u5219\u83b7\u53d6 sql \u8bed\u53e5\u4e2d\u7684\u8868\u540d", 
      "id": "https://www.v2ex.com/t/905419", 
      "date_published": "2022-12-29T09:45:35+00:00", 
      "content_html": "* \u53d6\u51fa\u6240\u6709\u5728 from \u548c join \u540e\u9762\u7684\u8868\u540d<br /><br />* \u8868\u540d\u6709\u5355\u8bcd\u5b57\u6bcd.\u548c_<br /><br />* \u76ee\u524d\u5199\u6cd5\uff1a`const fromTable = lowerSql.match(new RegExp('\\\\b(from)\\\\b[\\\\s\\\\S]*?\\\\s+([\\\\w._]+)\\\\', \"gi\")) || []`<br /><br />\u4f46 safari \u4e0d\u517c\u5bb9\u96f6\u5bbd\u65ad\u8a00"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/mashirozx", 
        "name": "mashirozx", 
        "avatar": "https://cdn.v2ex.com/avatar/e81d/4d72/233876_large.png?m=1648484276"
      }, 
      "url": "https://www.v2ex.com/t/897723", 
      "title": "Safari \u4e0a\u4e0d\u652f\u6301\u5411\u540e\u5339\u914d\u7684\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u8bf7\u6559\u66ff\u4ee3\u65b9\u6cd5", 
      "id": "https://www.v2ex.com/t/897723", 
      "date_published": "2022-11-24T14:50:14+00:00", 
      "content_html": "<p>\u5982\u4e0b\u6b63\u5219\uff0c\u5728 Chrome \u4e0a OK \uff0c\u4f46\u662f Safari \u4e0a\u62a5 <code>Invalid regular expression</code>\uff0c\u770b\u4e86\u4e00\u4e0b\u539f\u56e0\u662f Safari \u4e0d\u652f\u6301\u5411\u540e\u5339\u914d (<code>(?&lt;!</code>)\uff0c\u89c1 <a href=\"https://caniuse.com/js-regexp-lookbehind\" rel=\"nofollow\">can i use</a></p>\n<p>\u5982\u4e0b\u662f\u6211\u7684\u6b63\u5219\uff1a</p>\n<pre><code class=\"language-js\">/(?&lt;!\\/.*?)showLineNumbers(?:\\{(\\d+)})?/\n</code></pre>\n<p>\u671f\u671b\u7684\u6548\u679c\u5982\u56fe\uff1a</p>\n<p><img alt=\"cc89c06c94b73a4b3b7956c0825a4654.png\" class=\"embedded_image\" loading=\"lazy\" referrerpolicy=\"no-referrer\" rel=\"noreferrer\" src=\"https://view.moezx.cc/images/2022/11/24/cc89c06c94b73a4b3b7956c0825a4654.png\"/></p>\n<p>\u6c42\u4e00\u4e2a\u4e0d\u4f7f\u7528\u5411\u540e\u5339\u914d\u8868\u8fbe\u5f0f(<code>(?&lt;!</code>)\u7684\u66ff\u4ee3\u65b9\u6cd5 \ud83d\ude4f</p>\n<p>PS. \u8fd9\u4e2a\u6b63\u5219\u5de5\u5177\u633a\u597d\u7528\u7684\uff1a <a href=\"https://regex101.com\" rel=\"nofollow\">https://regex101.com</a></p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/itskingname", 
        "name": "itskingname", 
        "avatar": "https://cdn.v2ex.com/avatar/5469/969b/324508_large.png?m=1532149726"
      }, 
      "url": "https://www.v2ex.com/t/895346", 
      "date_modified": "2022-11-15T03:21:37+00:00", 
      "content_html": "<p>\u6211\u6709\u4e00\u6279\u5b57\u7b26\u4e32\uff0c\u4ed6\u4eec\u7684\u683c\u5f0f\u662f\u8fd9\u6837\u7684\uff1a</p>\n<pre><code>a = 'abc[\u8d26\u53f7]def[\u5bc6\u7801]xyz'\n\nb = 'aaa[\u8d26\u53f7]\u8fd8\u6709\"\u5b50\u5b57\u7b26\u4e32[\u65e0\u6548\u5185\u5bb9]\u5b50\u5b57\u7b26\u4e32\"bbb[\u5bc6\u7801]zzz'\n</code></pre>\n<p>\u6211\u60f3\u63d0\u53d6\u6240\u6709\u4e2d\u62ec\u53f7\u91cc\u9762\u7684\u5185\u5bb9\uff0c\u4f46\u5ffd\u7565\u53cc\u5f15\u53f7\u5185\u90e8\u7684\u4e2d\u62ec\u53f7\u4e2d\u7684\u5185\u5bb9\u3002</p>\n<p>\u4ee5\u4e0a\u9762\u4e24\u4e2a\u5b57\u7b26\u4e32 a \u548c b \u4e3a\u4f8b\uff0c\u9700\u8981\u63d0\u53d6\u7684\u5185\u5bb9\u90fd\u662f\u300e\u8d26\u53f7\u300f\u548c\u300e\u5bc6\u7801\u300f</p>\n<p>\u76ee\u524d\u6211\u80fd\u60f3\u5230\u7684\u529e\u6cd5\u662f\u4f7f\u7528\u72b6\u6001\u673a\u6765\u505a\u3002\u8bf7\u95ee\u6709\u6ca1\u6709\u4f7f\u7528\u6b63\u5219\u8868\u8fbe\u5f0f\u5c31\u80fd\u5b9e\u73b0\u7684\u65b9\u6cd5\uff1f</p>\n", 
      "date_published": "2022-11-15T03:20:05+00:00", 
      "title": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5982\u4f55\u5ffd\u7565\u5b50\u5b57\u7b26\u4e32\u4e2d\u7684\u5185\u5bb9", 
      "id": "https://www.v2ex.com/t/895346"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/qinrui", 
        "name": "qinrui", 
        "avatar": "https://cdn.v2ex.com/avatar/3a2b/ef30/273149_large.png?m=1666491093"
      }, 
      "url": "https://www.v2ex.com/t/895255", 
      "title": "\u6c42\u52a9 nginx \u7684 rewrite\uff0c\u9700\u6c42\u662f\u628a http \u6d41\u91cf\u8f6c\u5230 https", 
      "id": "https://www.v2ex.com/t/895255", 
      "date_published": "2022-11-14T14:40:57+00:00", 
      "content_html": "<p>\u7f51\u4e0a\u641c\u5230\u8fd9\u6837\u4e00\u53e5\uff1a</p>\n<pre><code>\trewrite ^(.*)$  https://$host$1 permanent;\n</code></pre>\n<p>\u4f46\u662f\u51fa\u73b0\u4e86\u5faa\u73af\u91cd\u5b9a\u5411</p>\n<p>\u56e0\u4e3a\u7528\u7684\u662f xinnet \u7684\u865a\u62df\u4e3b\u673a\uff0crewrite \u4e0d\u80fd\u6307\u5b9a\u5199\u5728 80 \u7aef\u53e3\u4e0b\uff0c\u6240\u4ee5\u5bfc\u81f4 https \u4e5f\u91cd\u5b9a\u5411</p>\n<p>\u54ea\u4f4d\u5927\u4f6c\u80fd\u5e2e\u5fd9\u5199\u4e00\u4e2a\uff0c\u5224\u65ad scheme \u662f http://\u65f6\uff0c\u91cd\u5b9a\u5411\u5230 https://</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/abc0123xyz", 
        "name": "abc0123xyz", 
        "avatar": "https://cdn.v2ex.com/avatar/b2d3/f02a/506371_large.png?m=1760332680"
      }, 
      "url": "https://www.v2ex.com/t/888475", 
      "date_modified": "2022-10-20T08:45:36+00:00", 
      "content_html": "<p>\u5982\u9898\uff0c\u60f3\u4ece html \u4e2d\u83b7\u53d6 token \u7684\u503c\uff0c\u5927\u6982\u7c7b\u4f3c\u4e8e\u4e0b\u8fb9\u7684\u6837\u5b50</p>\n<pre><code>&lt;!DOCTYPE html&gt;\n&lt;html&gt;\n&lt;body&gt;\n\n&lt;h2&gt;xxx&lt;/h2&gt;\n\n&lt;/body&gt;\n&lt;script&gt;\n\tfunction myFunction() {\n    \ttoken = \"xxxxxxxx\"\n\t}\n&lt;/script&gt;\n&lt;/html&gt;\n\n</code></pre>\n", 
      "date_published": "2022-10-20T08:45:19+00:00", 
      "title": "\u6c42\u5927\u4f6c\u6307\u70b9", 
      "id": "https://www.v2ex.com/t/888475"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Livid", 
        "name": "Livid", 
        "avatar": "https://cdn.v2ex.com/avatar/c4ca/4238/1_large.png?m=1775624785"
      }, 
      "url": "https://www.v2ex.com/t/875230", 
      "title": "iHateRegex \u4e00\u4e2a\u6536\u5f55\u5404\u79cd\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u7f51\u7ad9", 
      "id": "https://www.v2ex.com/t/875230", 
      "date_published": "2022-08-25T01:44:01+00:00", 
      "content_html": "<p><a href=\"https://ihateregex.io/expr/uuid/\" rel=\"nofollow\">https://ihateregex.io/expr/uuid/</a></p>\n<p>\u540d\u5b57\u53d6\u5f97\u4e5f\u5f88\u6709\u610f\u601d\u3002</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Moris", 
        "name": "Moris", 
        "avatar": "https://cdn.v2ex.com/gravatar/ca808aba66c83e79f193d4a7ae6d7060?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/871800", 
      "title": "\u8bf7\u6559\u4e00\u4e0b\uff0c\u5982\u4f55\u5229\u7528\u6b63\u5219\u8868\u8fbe\u5c06 html \u4e2d\u5728<p></p>\u4e4b\u95f4\u7684/\u7b5b\u9009\u51fa\u6765", 
      "id": "https://www.v2ex.com/t/871800", 
      "date_published": "2022-08-09T16:25:48+00:00", 
      "content_html": "<p>\u4f8b\u5982\uff0c\u6211\u6709\u4e00\u4e2a html \u5185\u5bb9\u5982\u4e0b</p>\n<pre><code>&lt;html&gt;\n    &lt;p&gt;\n        Have a/ good/ day! \u795d\u4f60 /\u5f00\u5fc3\uff01\n    &lt;/p&gt;\n&lt;/html&gt;\n</code></pre>\n<p>\u6211\u60f3\u8981\u628a\u5728</p><p></p>\u4e4b\u95f4\u7684 /\u53bb\u6389\uff0c\u53d8\u6210<p></p>\n<pre><code>&lt;html&gt;\n    &lt;p&gt;\n        Have a good day! \u795d\u4f60\u5f00\u5fc3\uff01\n    &lt;/p&gt;\n&lt;/html&gt;\n</code></pre>\n<p>\u8bf7\u95ee\u8be5\u901a\u8fc7\u6b63\u5219\u8868\u8fbe\u5982\u4f55\u5b9e\u73b0\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/867912", 
      "title": "ep \u6c42\u4e00\u4e2a\u6570\u5b57\u548c\u5355\u4f4d\u7684\u6b63\u5219", 
      "id": "https://www.v2ex.com/t/867912", 
      "date_published": "2022-07-22T01:43:17+00:00", 
      "content_html": "\u76ee\u524d\u5168\u4e66\u6709\u5f88\u591a\u7c7b\u4f3c 100cm 200kg 5GB/s  100t 200M \u7c7b\u4f3c\u8fd9\u6837\u7684\u524d\u6570\u5b57\u540e\u5355\u4f4d<br />\u6c42\u4e2a\u6b63\u5219\u6570\u5b57\u548c\u5355\u4f4d\u4e4b\u95f4\u7a7a\u4e2a\u8f6f\u7a7a<br />\u6548\u679c\u5982 100 cm 200 kg 5 GB/s  100 t 200 M<br /><br />\u6c42\u4e2a\u5b89\u5168\u7684\u6b63\u5219\u3002\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/tagtag", 
        "name": "tagtag", 
        "avatar": "https://cdn.v2ex.com/avatar/6c67/44b3/167851_large.png?m=1670997299"
      }, 
      "url": "https://www.v2ex.com/t/867504", 
      "date_modified": "2022-07-20T04:08:17+00:00", 
      "content_html": "\u4e00\u6bb5\u6587\u672c\uff1a<br />&lt;span&gt;target&lt;/span&gt; target &lt;div&gt;target&lt;/div&gt;<br /><br />\u6211\u60f3\u53ea\u66ff\u6362\u6ca1\u6709\u88ab\u6807\u7b7e\u5305\u88f9\u7684 target \uff0c\u5982\u679c\u88ab\u6807\u7b7e\u5305\u88f9\u5219\u5ffd\u7565\uff0c\u5e94\u8be5\u600e\u4e48\u5339\u914d\u554a\uff0c\u611f\u8c22\u611f\u8c22\u3002", 
      "date_published": "2022-07-20T04:07:33+00:00", 
      "title": "\u6b63\u5219\u83dc\u9e1f\u6c42\u6559", 
      "id": "https://www.v2ex.com/t/867504"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/Dropless", 
        "name": "Dropless", 
        "avatar": "https://cdn.v2ex.com/gravatar/0a97083c62b71902c01f422d89d72dff?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/867087", 
      "date_modified": "2022-07-18T10:46:54+00:00", 
      "content_html": "<p>\u8bf4\u6b63\u9898\u4e4b\u524d\uff0c\u591a\u8bf7\u5927\u5bb6\u62c5\u5f85\u4e00\u4e0b\u3002\u6b63\u5219\u7684\u9ad8\u7ea7\u5185\u5bb9\u6211\u5168\u662f\u8ddf\u7740\u82f1\u6587\u5185\u5bb9\u5b66\u7684\uff0c\u6240\u4ee5\u6709\u4e9b\u4e13\u6709\u540d\u8bcd\u6211\u5c31\u76f4\u63a5\u7528\u82f1\u6587\u4e86\uff0c\u56e0\u4e3a\u6211\u4e0d\u77e5\u9053\u5b83\u5bf9\u5e94\u7684\u4e2d\u6587\u53eb\u4ec0\u4e48\u3002</p>\n<p>\u95ee\u9898\u5982\u4e0b\uff1a</p>\n<p>\u5f85\u5339\u914d\u5b57\u7b26\u4e32\uff1aABCD</p>\n<p>\u6211\u7684\u6b63\u5219\uff1a(?&gt;AB|BC)D</p>\n<p>\u6309\u7167\u6211\u7684\u7406\u89e3\u6211\u7684\u6b63\u5219\u5e94\u8be5\u4e0d\u80fd\u5339\u914d\u7ed9\u5b9a\u7684\u5b57\u7b26\u4e32 ABCD \u3002\u4f46\u5b9e\u9645\u60c5\u51b5\u662f\u5339\u914d\u5230\u4e86 BCD \u3002\n\u6211\u7684\u7406\u89e3\u662f\uff1a\u5148\u5339\u914d <code>|</code>\u7684\u5de6\u8fb9 pattern: <code>AB</code>, \u5728\u5b57\u7b26\u4e32\u91cc\u9762\u5339\u914d\u5230\u4e86 AB \u3002\u7ee7\u7eed\u524d\u8fdb\u5339\u914d <code>D</code>\uff0c\u5339\u914d\u5931\u8d25\uff0c\u5b57\u7b26\u4e32\u91cc\u9762\u6ca1\u6709 ABD, \u6b64\u65f6\u5e94\u5f53 backtrack, \u4f7f\u7528 <code>|</code>\u7684\u53f3\u8fb9 pattern: <code>BC</code>\u3002\u4f46\u95ee\u9898\u5728\u4e8e\uff0c\u6211\u4f7f\u7528\u4e86 atomic group \uff0c\u800c\u4e14\u6b64\u65f6\u7684\u4f4d\u7f6e\u5df2\u7ecf\u8d85\u51fa\u4e86 atomic group \uff0c\u6240\u4ee5\u5e94\u5f53\u662f\u4e0d\u80fd backtrack \u7684\u3002\u6240\u4ee5\u6574\u4e2a\u6b63\u5219\u5e94\u5f53\u5339\u914d\u5931\u8d25\u3002\n\u4f46\u6d4b\u8bd5\u7ed3\u679c\u8bc1\u660e\u6211\u7406\u89e3\u9519\u4e86\u3002</p>\n<p>\u6240\u4ee5\u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\u4e3a\u4ec0\u4e48\u4f1a\u8fd9\u6837\uff0c\u8c22\u8c22\u3002\n\u6b63\u5219\u5f15\u64ce\uff1aBoost 1.76.0</p>\n", 
      "date_published": "2022-07-18T10:44:25+00:00", 
      "title": "\u6b63\u5219 backtrack \u8bf7\u6559", 
      "id": "https://www.v2ex.com/t/867087"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/wdc63", 
        "name": "wdc63", 
        "avatar": "https://cdn.v2ex.com/gravatar/c1d7c62963d87f2fc17ccc4f1109665a?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/862052", 
      "date_modified": "2022-06-24T17:56:06+00:00", 
      "content_html": "<p>1 \u5fc5\u987b\u662f\u5408\u6cd5\u6570\u5b57\uff08\u524d\u9762\u4e0d\u80fd\u591a\u4e2a 0 \uff09\n2 \u8303\u56f4\u5fc5\u987b\u5728-1000 \u5230 1000 \u4e4b\u95f4\uff08\u5305\u62ec-1000 \u548c 1000 \uff09\n3 \u53ef\u4ee5\u662f\u6574\u6570\uff0c\u53ef\u4ee5\u662f\u5c0f\u6570\uff0c\u5982\u679c\u662f\u5c0f\u6570\u4f4d\u6570\u5fc5\u987b\u5c0f\u4e8e\u7b49\u4e8e\u4e24\u4f4d</p>\n<p>\u4f8b\u5982 0.001 \u30019999 \u3001-1.010 \u300101.32 \u4e0d\u5408\u6cd5  99.99 \u30010 \u3001-1.2 \u5408\u6cd5</p>\n", 
      "date_published": "2022-06-24T17:46:56+00:00", 
      "title": "\u6c42\u7ed9\u751f\u6210\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\uff0c\u5e74\u9f84\u5927\u4e86\uff0c\u8111\u5b50\u4e0d\u591f\u7528\u4e86", 
      "id": "https://www.v2ex.com/t/862052"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/857145", 
      "title": "\u8bf7\u95ee\u6b63\u5219\u8fd9\u79cd\u66ff\u6362\u8be5\u600e\u4e48\u586b", 
      "id": "https://www.v2ex.com/t/857145", 
      "date_published": "2022-06-03T09:16:49+00:00", 
      "content_html": "\u6587\u4ef6\u91cc\u7684****\u548c***\u548c**\u548c*\uff0c\u6539\u6210\u2191\uff08*-*-*\uff09\uff0c\u5176\u4ed6 2 \u661f 1 \u661f 4 \u661f\u6309 3 \u661f\u683c\u5f0f\u4f59\u540c\u6539\uff0c\u5e94\u8be5\u600e\u4e48\u5904\u7406\u4e00\u4e0b\uff0c\u67e5\u627e\\*\uff5b 1 \uff0c4 \uff5d\uff0c\u66ff\u6362\u8be5\u600e\u4e48\u5199"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/854296", 
      "title": "\u6c42\u4e2a\u8868\u683c\u8865 0 \u7684\u6b63\u5219\u8868\u8fbe\u5f0f\u3002", 
      "id": "https://www.v2ex.com/t/854296", 
      "date_published": "2022-05-21T00:53:25+00:00", 
      "content_html": "\u8868\u683c\u4e2d\u542b\u6709 10.01  9.2 8.5  18.5 \u7c7b\u4f3c\u5f88\u591a\u8fd9\u6837\u7684\u6570\u5b57\u3002<br />\u8981\u6c42\u4ee5\u5c0f\u4f4d\u6570\u70b9\u540e\u591a\u4f4d\u4e3a\u51c6\u3002\u8865 0<br />\u6bd4\u5982 9.2 \u6539\u6210 9.20 8.50 18.50<br /><br />\u8fd9\u4e2a\u5728 eme \u6216 eeditplus \u6b63\u5219\u8be5\u600e\u4e48\u5199<br />\u67e5\u627e\u4ec0\u4e48\u3000\u66ff\u6362\u4ec0\u4e48"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/zzlatan", 
        "name": "zzlatan", 
        "avatar": "https://cdn.v2ex.com/avatar/f026/1b3f/434713_large.png?m=1613704540"
      }, 
      "url": "https://www.v2ex.com/t/849163", 
      "date_modified": "2022-04-25T07:47:17+00:00", 
      "content_html": "<p>\u91cc\u9762 id \u662f\u4e2a\u53d8\u91cf\uff0c\u8fd9\u79cd\u8be5\u600e\u4e48\u5199\u6b63\u5219\u5462\u3002\u611f\u8c22\u5404\u4f4d\u5927\u54e5\uff0c\u5c0f\u767d\u8c22\u8fc7\u4e86\u3002</p>\n", 
      "date_published": "2022-04-25T07:02:49+00:00", 
      "title": "\u6c42\u4e2a\u6b63\u5219\uff1f pathname/{id}/sub_pathname", 
      "id": "https://www.v2ex.com/t/849163"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/stultulo", 
        "name": "stultulo", 
        "avatar": "https://cdn.v2ex.com/gravatar/48dcb06b6edd374cc2dcb51a895d6758?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/848439", 
      "title": "[\u6c42\u52a9] \u8bf7\u95ee\u6b63\u5219\u4ece\u540e\u5f80\u524d\u975e\u8d2a\u5a6a\u5339\u914d", 
      "id": "https://www.v2ex.com/t/848439", 
      "date_published": "2022-04-21T12:45:52+00:00", 
      "content_html": "<p>\u8bf7\u95ee\u60f3\u4e0b\u9762\u8fd9\u79cd\u7528\u91cd\u590d\u7247\u6bb5 <code>abc</code> \u7ec4\u6210\u7684\u5b57\u7b26\u4e32</p>\n<pre><code>str = \"abcaada2abcbfb3abccdsc4abcddd5\"\n</code></pre>\n<p>\u60f3\u8981\u5339\u914d <code>abc</code> \u548c <code>4</code> \u53ca\u4e4b\u95f4\u7684\u5b57\u7b26\uff1a</p>\n<pre><code>abccdsc4\n</code></pre>\n<p>\u4f7f\u7528  <code>abc</code> \u548c <code>4</code> \u4f5c\u4e3a\u5b9a\u4f4d\u7b26\uff0c\u7ed3\u679c</p>\n<pre><code>&gt;&gt;&gt; print(re.search('abc.*?4', str))\n&lt;re.Match object; span=(0, 23), match='abcaada2abcbfb3abccdsc4'&gt;\n</code></pre>\n<p>\u8bf7\u6559\u4e00\u4e0b\u5927\u5bb6\uff0c\u8be5\u5982\u4f55\u5b9e\u73b0\u9700\u6c42\uff1f\u611f\u6fc0</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/ALLROBOT", 
        "name": "ALLROBOT", 
        "avatar": "https://cdn.v2ex.com/avatar/eb31/6d3f/333565_large.png?m=1737196994"
      }, 
      "url": "https://www.v2ex.com/t/842059", 
      "title": "[\u6c42\u52a9]\u6b63\u5219\u8868\u8fbe\u5f0f\u7684\u6b63\u5411\u5426\u5b9a\u9884\u67e5\uff0c\u65e0\u6cd5\u7b5b\u9009\u67d0\u4e9b\u5b57\u7b26\u4e32", 
      "id": "https://www.v2ex.com/t/842059", 
      "date_published": "2022-03-22T03:36:35+00:00", 
      "content_html": "<p>every(?!n) \u5339\u914d\u4efb\u4f55\u5176\u540e\u6ca1\u6709\u7d27\u63a5\u6307\u5b9a\u5b57\u7b26\u4e32 n \u7684\u5b57\u7b26\u4e32\u3002</p>\n<pre><code class=\"language-JAVA\">\t//\u5339\u914d\u540e\u9762\u5b57\u7b26\u4e0d\u4e3a 10 \u7684 win\n\tvar str = \"win7 win8 win10\";\n\tvar res = str.match(/win(?!10)/g);\n\tconsole.log(res); //[\"win\", \"win\"]\n    \n</code></pre>\n<p>\u5728\u4ee5\u4e0b\u6587\u672c\u4e2d</p>\n<pre><code>-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u6781\u4e50\u5929\u5802 /\"],tbody[-ext-contains=\"/\u6b27\u7f8e(.*?)\u6781\u4e50\u5929\u5802 /\"]\n-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u81ea\u7531\u901a\u884c\u8bc1 /\"],tbody[-ext-contains=\"/\u6b27\u7f8e(.*?)\u81ea\u7531\u901a\u884c\u8bc1 /\"]\n-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u9676\u9189\u7684\u82ac\u9999 /\"],tbody[-ext-contains=\"/\u6b27\u7f8e(.*?)\u9676\u9189\u7684\u82ac\u9999 /\"]\n-0\"][-ext-contains=\"/\u53f2\u4e0a\u6700\u8d35 RPG\uff1a\u547d\u4e2d\u6ce8\u5b9a\u7684\u53ec\u5524\u672f(.*?)1.17/\"]\n-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u8eab\u5fc3\u8361\u6f3e /\"]\n-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u6076\u5973\u7ba1\u6559\u6240 /\"]\n</code></pre>\n<p>\u4f7f\u7528<code>d\\-0\\\"\\]\\[\\-ext\\-contains\\=\\\"(.*?)\\\"\\](?!\\,)</code>  \u6216 <code> d\\-0\\\"\\]\\[\\-ext\\-contains\\=\\\"(.*?)\\\"\\](?!,)</code></p>\n<p>\u53ea\u80fd\u5339\u914d<code>-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u6781\u4e50\u5929\u5802 /\"],tbody[-ext-contains=\"/\u6b27\u7f8e(.*?)\u6781\u4e50\u5929\u5802 /\"]</code></p>\n<p>\u65e0\u6cd5\u5339\u914d<code>-0\"][-ext-contains=\"/\u6b27\u7f8e(.*?)\u8eab\u5fc3\u8361\u6f3e /\"]</code>\u8fd9\u79cd\u4e0d\u5e26\",\"\u6807\u70b9\u7684\u5b57\u7b26\u4e32</p>\n<p>\u7f16\u5199\u7684\u6b63\u5411\u5426\u5b9a\u73af\u89c6\u54ea\u91cc\u51fa\u95ee\u9898\u4e86</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/iamhrh2", 
        "name": "iamhrh2", 
        "avatar": "https://cdn.v2ex.com/gravatar/e9fa819d12df914e88efd7b661abb2d1?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/841117", 
      "date_modified": "2022-03-17T13:54:09+00:00", 
      "content_html": "<p>\u5168\u4e66\u91cc\u9762\u4e2d\u82f1\u6570\u90fd\u6709\uff0c</p>\n<p>\u53ea\u4fdd\u7559\u82f1\u6587\u548c\u6570\u5b57\uff0c\u6570\u5b57\u548c\u6570\u5b57\uff0c\u82f1\u6587\u548c\u82f1\u6587\u4e4b\u95f4\u539f\u6709\u7684\u7a7a\u683c\u3002</p>\n<p>\u5176\u4ed6\u7684\u7a7a\u683c\u5168\u90e8\u66ff\u6362\u6389\uff0c\u5305\u62ec\u6807\u70b9\u7b26\u53f7\u4e4b\u95f4\u7684\u7a7a\u683c\u4e5f\u66ff\u6362\u6389\u3002</p>\n<p>\u61c2\u6b63\u5219\u7684\u670b\u53cb\u9ebb\u70e6\u7ed9\u6211\u770b\u770b\u80fd\u5426\u884c\u7684\u901a\u3002\u8c22\u8c22</p>\n", 
      "date_published": "2022-03-17T13:51:32+00:00", 
      "title": "\u5168\u4e66\u5f88\u591a\u7a7a\u683c\uff0c\u6c42\u4e00\u4e2a\u6b63\u5219\u8868\u8fbe\u5f0f\u5e2e\u6211\u770b\u770b\u662f\u5426\u884c\u7684\u901a\uff1f", 
      "id": "https://www.v2ex.com/t/841117"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/17681880207", 
        "name": "17681880207", 
        "avatar": "https://cdn.v2ex.com/avatar/8880/375b/303637_large.png?m=1774597204"
      }, 
      "url": "https://www.v2ex.com/t/837966", 
      "date_modified": "2022-03-04T06:48:38+00:00", 
      "content_html": "<h1>\u9700\u6c42</h1>\n<p>\u6b63\u5219\u9a8c\u8bc1\u6570\u5b57\uff0c\u5e76\u4e14\u6700\u591a\u4fdd\u7559 2 \u4f4d\u5c0f\u6570\u3002</p>\n<h1>\u5b9e\u73b0</h1>\n<pre><code class=\"language-typescript\">const regExp1 = /^(-)?\\d+(?:.\\d{1,2})?$/\nconst regExp2 = /^(-)?\\d+(.\\d{1,2})?$/\n</code></pre>\n<h1>\u6d4b\u8bd5</h1>\n<pre><code class=\"language-typescipt\">// assume the value is:\n// 1,1.1\nregExp1.test(value:number)\nregExp2.test(value:number)\n</code></pre>\n<p>\u6d4b\u8bd5\u53d1\u73b0\uff0cvalue \u7684\u7ed3\u679c\u90fd\u4e00\u6837\uff0c\u8bf7\u8bf7\u6559\u4e0b\u5927\u5bb6\uff0c\u8be5\u5982\u4f55\u7406\u89e3?:\u7684\u4f5c\u7528\uff0c\u4e0d\u80dc\u611f\u6fc0~</p>\n", 
      "date_published": "2022-03-04T06:48:01+00:00", 
      "title": "\u8bf7\u95ee\u6b63\u5219\u8868\u8fbe\u5f0f\u4e2d\uff0c\u4e2d\u95f4\u90e8\u5206\u7684?:\u7684\u4f5c\u7528\u662f\u4ec0\u4e48\uff1f", 
      "id": "https://www.v2ex.com/t/837966"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/weixiangzhe", 
        "name": "weixiangzhe", 
        "avatar": "https://cdn.v2ex.com/avatar/1ac0/1be1/202574_large.png?m=1535087039"
      }, 
      "url": "https://www.v2ex.com/t/831230", 
      "title": "\u5173\u4e8e\u6b63\u5219\u6570\u5b57\u6dfb\u52a0\u5343\u5206\u53f7 /\\B((?=(?:\\d{3}))+$)/g \u4e0d\u592a\u7406\u89e3", 
      "id": "https://www.v2ex.com/t/831230", 
      "date_published": "2022-01-29T02:26:10+00:00", 
      "content_html": "<p><a href=\"https://i.imgur.com/X0WJVLy.png\" rel=\"nofollow\">img</a></p>\n<p>(?=(?:\\d{3}) \u53ef\u4ee5\u5339\u914d\u5230 \"333\" \u524d\u9762\u7684\u7a7a\u5b57\u4e32 \"\"</p>\n<p>(?=(?:\\d{3})+ \u4e00\u5230\u591a\u4e2a\n\u4f46\u5339\u914d\u91cc\u7684 $ \u53f7\uff0c\u6216\u8005\u6709\u4e9b\u4eba\u5199\u7684 (?!\\b) \u662f\u5565\u610f\u601d\u5462</p>\n<pre><code class=\"language-js\">'8123456789'.replace(/\\B(?=(?:\\d{3})+$)/g,',') // 8,123,456,789\n\n\"8123456789\".replace(/\\B(?=(?:\\d{3})+(?!\\d))/g,\",\") // 8,123,456,789\n</code></pre>\n<p>\u4e3a\u4ec0\u4e48\u4e0d\u80fd\u5199\u6210</p>\n<pre><code>'8123456789'.replace(/\\B(?=(?:\\d{3}))+$/g,',') // '8123456789'\n</code></pre>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/tibifide", 
        "name": "tibifide", 
        "avatar": "https://cdn.v2ex.com/gravatar/de942b6c2caf36cd7df4ec66c1193098?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/819570", 
      "title": "\u8bf7\u95ee\u63d0\u53d6 caseId \u7684\u6570\u5b57\u6b63\u5219\u600e\u4e48\u5199\uff1f", 
      "id": "https://www.v2ex.com/t/819570", 
      "date_published": "2021-12-02T08:10:35+00:00", 
      "content_html": "\u63d0\u53d6\u5b57\u7b26\u4e32\"Connection: keep-alive CASE_ID: 574 SUITE_Id: 88\".<br /><br />\u671f\u671b\u628a\u201c574\u201d\u63d0\u53d6\u51fa\u6765\u3002"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/fangwenxue", 
        "name": "fangwenxue", 
        "avatar": "https://cdn.v2ex.com/avatar/9490/a977/449802_large.png?m=1745028007"
      }, 
      "url": "https://www.v2ex.com/t/816961", 
      "date_modified": "2021-11-21T11:57:33+00:00", 
      "content_html": "<pre><code>\u6211\u60f3\u8981\u7684\u7ed3\u679c \u6c42\u4e2a\u6b63\u5219\nconst s = '/hello'  // match[1] = hello\nconst s = '/hello/abcd' // match[1] = hello // match[2] = /abcd\nconst s = '/hello/' // match[1] = hello // match[2] = /\n\nconsole.log(s.match(/\\/([^\\/]+)?(.+)/i))\n</code></pre>\n", 
      "date_published": "2021-11-21T09:41:40+00:00", 
      "title": "\u6c42\u4e2a\u6b63\u5219", 
      "id": "https://www.v2ex.com/t/816961"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/yazoox", 
        "name": "yazoox", 
        "avatar": "https://cdn.v2ex.com/avatar/7b39/2690/111562_large.png?m=1635297358"
      }, 
      "url": "https://www.v2ex.com/t/803424", 
      "title": "JS \u91cc\u9762\u7684 string.match\uff0c\u600e\u4e48\u628a\u5339\u914d\u5b57\u7b26\u4e32\u53d6\u51fa\u6765\uff1f", 
      "id": "https://www.v2ex.com/t/803424", 
      "date_published": "2021-09-22T08:52:34+00:00", 
      "content_html": "<p>typescript</p>\n<pre><code>const regKey: string = /^google-(.+){10,}-name$/;\nconst name1: string = \"google-15922231201-name\";\nconst name2: string = \"google-dbid%3AAACd8VcY240_OYIPqr4L-8M6RvNEDErLG1s-name\";\n\nconst matches1 = name1.match(regKey);\nconst matches2 = name2.match(regKey);\n</code></pre>\n<p>\u5728\u8fd9\u91cc\uff0cmatches1[1]\uff0c\u662f\u80fd\u591f\u62ff\u5230 \"15922231201\"\uff0c\u4f46\u662f\uff0cmatches2[1]\uff0c\u5374\u62ff\u4e0d\u5230\u4e2d\u95f4\u7684\u90a3\u4e00\u957f\u4e32\u5b57\u7b26\u4e32\u3002\u8fd4\u56de\u503c\u662f \"s\"\uff0c\u53ea\u6709\u4e00\u4e2a s...... </p>\n<p>\u6211\u5728 <a href=\"https://regex101.com/\" rel=\"nofollow\">https://regex101.com/</a> \u8fd9\u91cc\u8bd5\u8fc7\uff0c\u5f15\u64ce\u9009 javascript\uff0c\u8fd9\u4e24\u5b57\u7b26\u4e32\uff0c\u90fd\u662f\u7b26\u5408\u8981\u6c42\u7684\u3002</p>\n<p>\u8bf7\u95ee\u4e00\u4e0b\uff0c\u8fd9\u91cc\u7684 reg \u54ea\u91cc\u5199\u7684\u4e0d\u5bf9\u3002</p>\n<p>\u53e6\uff0c\u6211\u77e5\u9053\u53ef\u4ee5\u76f4\u63a5\u7528 substring + \u957f\u5ea6\uff0c\u76f4\u63a5\u62ff\u5230 google- &amp; -name \u5339\u914d\u7684\u4e2d\u95f4\u7684\u5b57\u7b26\u4e32\uff0c\u4f46\u8fd9\u91cc\uff0c\u6211\u60f3\u4e86\u89e3\u4e0b\uff0c\u8fd9\u4e2a\u6b63\u5219\u662f\u54ea\u91cc\u5199\u5f97\u4e0d\u5bf9\u4e86\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/MinYa", 
        "name": "MinYa", 
        "avatar": "https://cdn.v2ex.com/gravatar/df53c16645027557d773b8aa13975ecb?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/801839", 
      "title": "\u6c42\u5927\u4f6c\u6307\u70b9 js \u6b63\u5219\uff0c\u62dc\u8c22", 
      "id": "https://www.v2ex.com/t/801839", 
      "date_published": "2021-09-14T12:07:21+00:00", 
      "content_html": "<p>\u5bc6\u7801\u6821\u9a8c\u7684\u6b63\u5219\n/(?!.*[\\u4E00-\\u9FA5\\s])(?!^[a-zA-Z]+$)(?!^[\\d]+$)(?!^[^a-zA-Z\\d]+$)^.{6,20}$/g</p>\n<p>\u5f53\u524d\u89c4\u5219\u662f 6-20 \u4f4d\uff0c\u5927\u5199\u5b57\u6bcd\uff0c\u5c0f\u5199\u5b57\u6bcd\uff0c\u6570\u5b57\u548c\u6807\u70b9\u7b26\u53f7(\u9664\u7a7a\u683c)\u6ee1\u8db3\u4e24\u79cd\u5373\u53ef\u3002</p>\n<p>\u5982\u679c\u6211\u60f3\u6539\u9020\u8fd9\u4e2a\u6b63\u5219\uff0c\u5206\u522b\u5224\u65ad\u6ee1\u8db3\u4e00\u79cd\uff0c\u4e8c\u79cd\uff0c\u4e09\u79cd\uff0c\u56db\u79cd\u5e94\u8be5\u600e\u4e48\u6539\u5199\uff0c\u6b63\u5219\u4e0d\u4f1a\u5199\uff0c\u62dc\u8c22\u5927\u4f6c\u4eec\u4e86</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/deeprobe", 
        "name": "deeprobe", 
        "avatar": "https://cdn.v2ex.com/gravatar/6d06a1d6ff08417a720350272d6ae9ce?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/795925", 
      "title": "\u6c42\u95ee\uff1a\u6b63\u5219\u5bf9\u4f4d\u7f6e\u5339\u914d\u662f\u600e\u4e48\u5904\u7406\u7684\uff1f", 
      "id": "https://www.v2ex.com/t/795925", 
      "date_published": "2021-08-15T11:35:28+00:00", 
      "content_html": "<p>\u770b\u5230\u7684\u90fd\u662f\u7279\u5f81\u5339\u914d\uff0c\u4f4d\u7f6e\u5339\u914d\u5f88\u5c11\u3002\u6bd4\u5982\u4e00\u4e32\u5b57\u7b26\uff0c\u5339\u914d\u7b2c\u4e09\u4e2a\u5b57\u7b26\uff0c\u6b63\u5219\u600e\u4e48\u5199\u5462\uff1f</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/SSang", 
        "name": "SSang", 
        "avatar": "https://cdn.v2ex.com/avatar/e063/7c9e/535525_large.png?m=1757037531"
      }, 
      "url": "https://www.v2ex.com/t/794904", 
      "title": "\u6b63\u5219\u8868\u8fbe\u5f0f\u5982\u4f55\u5d4c\u5957\u5339\u914d", 
      "id": "https://www.v2ex.com/t/794904", 
      "date_published": "2021-08-10T10:34:35+00:00", 
      "content_html": "<pre><code>RegionInfoMessage `json:\"RefreshAfter\"`\n</code></pre>\n<p>\u9700\u8981\u5339\u914d </p>\n<p>\u5f00\u5934:</p>\n<pre><code>json:\"\n</code></pre>\n<p>\u7ed3\u5c3e:</p>\n<pre><code>\"\n</code></pre>\n<p>\u5185\u7684\u5355\u8bcd<strong>\u7684\u5927\u5199</strong></p>\n<p>\u5373\u5339\u914d\u7ed3\u679c\u4e3a </p>\n<pre><code>R\nA\n</code></pre>\n<p>\u6211\u53ea\u77e5\u9053\u8fd9\u6837</p>\n<pre><code>(?&lt;=json:\").*?(?=\")\n</code></pre>\n<p>\u53ef\u4ee5\u5339\u914d\u51fa</p>\n<pre><code>RefreshAfter\n</code></pre>\n<p>\u4e4b\u540e\u5e94\u8be5\u600e\u4e48\u505a</p>\n"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/neowong2005", 
        "name": "neowong2005", 
        "avatar": "https://cdn.v2ex.com/gravatar/7b96d3843ed3683b4b39f95559b6c8a0?s=73&d=retro"
      }, 
      "url": "https://www.v2ex.com/t/794741", 
      "date_modified": "2021-08-10T00:26:36+00:00", 
      "content_html": "<p>\u6211\u60f3\u628a proto=1 \u7684\u884c\u53d6\u51fa\u6765\uff0c\u5176\u4ed6 proto=1 \u5f00\u5934\u7684\u4e0d\u8981\uff0c\u600e\u4e48\u7528\u6b63\u5219\u5b9e\u73b0\uff0cPython\uff0c\u8c22\u8c22</p>\n", 
      "date_published": "2021-08-09T16:12:11+00:00", 
      "title": "\u6211\u8bf7\u6559\u4e00\u4e2a Python \u6b63\u5219\u8868\u8fbe\u5f0f\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/794741"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/sadfQED2", 
        "name": "sadfQED2", 
        "avatar": "https://cdn.v2ex.com/avatar/0878/5765/430437_large.png?m=1698062287"
      }, 
      "url": "https://www.v2ex.com/t/792654", 
      "date_modified": "2021-07-30T06:57:41+00:00", 
      "content_html": "<p>\u5982\u679c\u6211\u53ea\u60f3\u8981\u6b63\u5219\u5339\u914d\u7ed3\u679c\u4e2d\u7684\u90e8\u5206\u5185\u5bb9\uff0c\u6709\u4ec0\u4e48\u529e\u6cd5\u5417\uff1f\u6bd4\u5982\u6211\u73b0\u5728\u9700\u8981\u5728\u4e00\u6bb5\u6587\u5b57\u4e2d\u627e\u51fa\u7535\u8bdd\u53f7\u7801</p>\n<p>\u6587\u5b57 demo\uff1a</p>\n<p><code>\u4f60\u597d\u554a 010-6565656 \u4f60\u597d\uff01</code></p>\n<p>\u6211\u7684\u6b63\u5219</p>\n<p><code>/\\d+-\\d+/</code></p>\n<p>\u8fd9\u6837\u62ff\u5230\u7684\u5339\u914d\u7ed3\u679c\u662f 010-6565656,\u4f46\u662f\u5982\u679c\u6211\u53ea\u60f3\u8981\u5339\u914d\u7ed3\u679c\u4e2d\u7684\u7535\u8bdd\u53f7\u7801\uff0c\u800c\u4e0d\u8981\u533a\u53f7\u7684\u8bdd\u600e\u4e48\u5199\u5462\uff08\u5339\u914d\u8bed\u53e5\u91cc\u9762\u8fd8\u662f\u5f97\u5305\u542b\u533a\u53f7\uff0c\u53ea\u662f\u8f93\u51fa\u7ed3\u679c\u4e0d\u8981\u533a\u53f7\uff09\uff1f\u6211\u4f9d\u7a00\u8bb0\u5f97\u6709\u4e2a\u4ec0\u4e48\u5199\u6cd5\u53ef\u4ee5\u53ea\u62ff\u5230\u60f3\u8981\u7684\u90e8\u5206\u3002\u4f46\u662f\u592a\u4e45\u6ca1\u5199\u6b63\u5219\u4e86\uff0c\u4e0d\u8bb0\u5f97\u53eb\u5565\u4e86\uff0c\u641c\u7d22\u5f15\u64ce\u641c\u4e86\u534a\u5929\u4e5f\u4e0d\u77e5\u9053\u5173\u952e\u5b57\u662f\u5565</p>\n", 
      "date_published": "2021-07-30T03:32:29+00:00", 
      "title": "\u63d0\u95ee\u4e00\u4e2a\u6b63\u5219\u5339\u914d\u7684\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/792654"
    }, 
    {
      "author": {
        "url": "https://www.v2ex.com/member/79lawyer", 
        "name": "79lawyer", 
        "avatar": "https://cdn.v2ex.com/avatar/092a/8e07/215178_large.png?m=1756193395"
      }, 
      "url": "https://www.v2ex.com/t/790381", 
      "date_modified": "2021-07-19T07:05:16+00:00", 
      "content_html": "\u5b57\u7b26\u4e32\"\u6c34\u679c\uff0c\u852c\u83dc\uff0c\u8089\u7c7b\uff0c\u6c34\u4ea7(\u5927\u95f8\u87f9\uff0c\u5c0f\u9f99\u867e)\uff0c\u9c9c\u82b1\", \u600e\u4e48\u7528\u6b63\u5219\u5339\u914d\u51fa[\"\u6c34\u679c\", \"\u852c\u83dc\", \"\u8089\u7c7b\", \"\u6c34\u4ea7(\u5927\u95f8\u87f9\uff0c\u5c0f\u9f99\u867e)\", \"\u9c9c\u82b1\"]\u7684\u7ed3\u679c\u5462\uff1f\u8c22\u8c22\u5927\u4f6c\u4eec\u3002", 
      "date_published": "2021-07-19T06:29:38+00:00", 
      "title": "\u60f3\u8bf7\u6559\u4e00\u4e2a\u6b63\u5219\u76f8\u5173\u95ee\u9898", 
      "id": "https://www.v2ex.com/t/790381"
    }
  ]
}