48 questions
It's my first time using c# Regex.Replace, so I'm not sure.For example, a = ,123 asdf,456ghjk,zxcv I only want to leave a = ,123 asdf,456ghjk in Replace, but I don't know how to set the expression.
import reBefore_str = The name is Chul-soo Kim, the phone number is 010-0000:0000, and the place to make a reservation is Wolha Village. The number of people is nine. The date is 2019-11-11after_str =...
In addition to video lectures, I am looking for a site where I can practice and explain well.
import res = 2019-11-22 5 people 010-1111-2222numbers = re.findall(\d+, s)print(numbers)Result value: ['2019', '11', '22', '5', '010', '1111', '2222']Is there a way to make only 20191112 come out her...
I'm going to save the first address and delete the last part of it. But even if I try Python regular expressions, it doesn't work well.
Question 1: (Solution) [Pure Fore] Alice Total Cream 50 ml[Glossy Blossom] One nail sticker, Vivid Shell[Apieu] iMousse. [#3 Maple Toast] 6gI want to erase the brand name firstbrand = [Pure Fore, Glos...
There's an address like 'media/dir1/dir2/file.png', except for the file nameI want to extract only this part of media/dir1/dir2/'.+(?<=/)' This regular expression succeeded.But I don't know exactly...
import rekor_txt = 나다 ㄴㅐ| | fdㅑ ㅒ# fd|jkaFSA 498130$#@!*&^ %)(-_=+ []{}<>,./?'`')# # kor_txt = kor_txt.replace(|,)print(re.sub('[^--h|a-zA-Z|0-9|`!@#$%^&*()\[\]{}\-\_\'\><\/\?]'...
You want to print out the rest of the words except when the text is input and the extension is txt or hwp, as shown below.What should the regular expression be like? I'm asking this question after thi...
'--option1value1 --option2spacing{ option1: value1, 2 option : space writing}I need a code that makes it this way.The problem here is that if I split based on spacing, there may be an error because th...
« | - 4 - | » |
© 2024 OneMinuteCode. All rights reserved.