generate functionFri, 16 Dec 2022
文字列の中から、「調査対象期間:」と「〜」に囲まれた日付の文字列だけを取得する
def get_date_string(string): return re.search('調査対象期間:(.*)〜', string).group(1) print(get_date_string('調査対象期間:2020/08/01〜2020/08/31'))
Python
Generate MoreGeneration
文字列の中から、「調査対象期間:」と「〜」に囲まれた日付の文字列だけを取得する
def get_date_string(string): return re.search('調査対象期間:(.*)〜', string).group(1) print(get_date_string('調査対象期間:2020/08/01〜2020/08/31'))
Generate
More than just a code generator. A tool that helps you with a wide range of tasks. All in one place.
Function from Description
Text Description to SQL Command
Translate Languages
Generate HTML from Description
Code to Explanation
Fix invalid Code
Get Test for Code
Class from Description
Regex from Description
Regex to Explanation
Git Command from Description
Linux Command
Function from Docstring
Add typing to code
Get Language from Code
Time complexity
CSS from Description
Meta Tags from Description