約108件1ページ目

日本語のみで絞り込む

2013/12/9 -I would like to use str.replace as show below to do it, but I'm not sure I can use a wildcard this way...

2023/1/26 -This works with iterators and uses a closure as generator. No regex. def replace(text: str, replacements: list[str]) -> str: def default_next(): ...

2023/4/9 -1. Initialize the string and the pattern to search for. · 2. Print the original string. · 3. Use a list comprehension to create a list of all ...

2025/1/15 -You can replace strings in Python using the .replace() method and re.sub() . You replace parts of a string by chaining .replace() calls or using ...

2025/5/4 -In Python, you can replace strings using the replace() and translate() methods, or with regular expression functions like re.sub() and ...

2014/10/1 -I'd like to match a string, followed by a variable name, followed by a string and replace the exact text but with a single quote in front of the ...

How to implement wildcards in Python. A wildcard is a symbol used to replace or represent one or more characters. Wildcards are used in computer programs ...

2021/10/25 -I have a string of text where I need to remove certain text and character elements (HTML elements specifically). I am able to use Regex.

2017/6/23 -Replace String with Wildcard ... string adder; adder = '[Test | 123 ! xyz]'; string replaced; replaced = adder.replaceall('|%!',''); System.