約21,200件1ページ目

日本語のみで絞り込む

条件を指定して検索しています。すべての条件を解除する

  • 最終更新日:6か月以内
  • 2026/10/6 -re.sub() function in Python is used to replace occurrences of a regular expression pattern in a string with a specified replacement.

    2026/8/2 -Regex is not just for finding text, it is also excellent for rewriting it. re.sub(pattern, replacement, string) returns a new string with every match replaced:.

    2026/8/17 -You can use regular expressions to change the case of characters that matches some criteria. ... In the replace field, depending on what you want to achieve, ...

    2026/7/21 -re.sub replaces regex matches, and passing a function as the replacement is the feature that turns it from find-and-replace into real text transformation.

    2026/11/10 -Regular expressions in Python explained through runnable examples of matching, extraction, validation, substitution, splitting, and a complete log parser.

    2026/6/13 -This article contains 30 hands-on exercises that build practical Python regex skills using Python's re module — from quantifiers, character classes, ...

    2026/6/11 -You cannot natively prepend a "#" to every line inside a multi-line regex match using just the replacement string in Visual Studio Code.

    2026/5/30 -Practical examples · Validate an email address · Extract URLs from text · Validate a phone number (flexible) · Replace all occurrences · Split on multiple delimiters.

    2026/10/25 -The Python re module provides support for working with regular expressions, allowing you to search, match, and manipulate strings using complex pattern ...

    2026/9/18 -In this JavaScript example, $1 refers to group 1 and $$ inserts a literal dollar sign. Python uses different capture references in replacements. The editor ...