regex tag

48 questions


1 answers
51 views
0
Remove characters that do not start with numbers with c# Regex.Replace

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.

2 years ago

1 answers
75 views
0
Implement only one duplicate regular expression character

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 =...

2 years ago

2 answers
51 views
0
Is there a site where I can learn regular meals?

In addition to video lectures, I am looking for a site where I can practice and explain well.

2 years ago

1 answers
47 views
0
Extract Python specific parts only

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...

2 years ago

2 answers
47 views
0
To exclude only a fraction of a string with Python regular expressions

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.

2 years ago

1 answers
46 views
0
Remove a regular expression specific string

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...

2 years ago

1 answers
43 views
0
I have a regular expression question.

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...

2 years ago

1 answers
51 views
0
How do I do OR operations with | characters in Python regular expressions?

import rekor_txt = 나다 ㄴㅐ| | fdㅑ ㅒ# fd|jkaFSA 498130$#@!*&^ %)(-_=+ []{}<>,./?'`')# # kor_txt = kor_txt.replace(|,)print(re.sub('[^--h|a-zA-Z|0-9|`!@#$%^&*()\[\]{}\-\_\'\><\/\?]'...

2 years ago

1 answers
44 views
0
I have a question for Python's regular show!

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...

2 years ago

1 answers
46 views
0
Ignore regular expressions?

'--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...

2 years ago
« - 4 - »

© 2024 OneMinuteCode. All rights reserved.