regex tag

48 questions


1 answers
359 views
0
Pattern extraction using Python regular expressions

You want to extract a specific pattern using Python's regular expression.(It doesn't matter if there's a better way than regular expression)For example,-> Hello. Today is (12.05.26). 789261-12.A nu...

1 years ago

1 answers
233 views
0
How to find from certain words to empty lines with Regex

How do I find a paragraph that starts with 002 in the paragraph below?001 Hide and Seek/Can you see us? Can you see me? Yes, I can see you. Can you see me? Yes, we can see you. Can you see me? Yes, we...

1 years ago

1 answers
154 views
0
Differences between match and search in python regular expressions

In Python, you try to find if the string contains a something: as a regular expression. import rere.match(r'a[\s\w]+:',a something:)#a preceded by a spaceThis will result in None.import rere.search (r...

2 years ago

1 answers
124 views
0
Quoted substrings provide information on how to split strings with spaces while protecting them

'this is a test'Split these strings [this, is, a, test] #Not this one[this, is, a test] #This!I hope the quotation marks are protected together.I'm trying to make a function myself, so I don't have a ...

2 years ago

1 answers
155 views
0
. How do I know if the email address is valid in JavaScript?

How do I know if the email address is valid in JavaScript?


3 answers
73 views
0
Meaning of (?s) in a regular expression.

I can't find the meaning of (?s) even if I keep looking for it, I don't know what it means. What is the role of (?s) in a regular expression?

2 years ago

1 answers
183 views
0
The OnFocusChangeListener is not working properly.

I'd like to check my email when the focus of EditText is released. Once you enter an email and move on to another EditText, it will work normally (whether normal or showing an error message).However, ...


2 answers
102 views
0
It's a regular question!

You only want to find the values 10.200.180.2, 10.200.180.3 in the text below.The problem is that IP information should only be selected if there is MAC information before it, such as 64:16:8d:dc:6c:4...

2 years ago

2 answers
132 views
0
[Python] I have a question about sentence search and saving!

Assume that spring=summerfallautumnwinter is in the text file.a = spring=summerfallautumnwinterIn this part a = spring = (English sentence) Summer fall early autumn winterExcept for spring and quotati...

2 years ago

1 answers
69 views
0
Questions about Python regex!

I'm making a program that shows how many chapters there are in each book as a practiceIt's hard to make the output come out the way I want it to. Questions related to title variables below. For exampl...

2 years ago
- 1 - »

© 2024 OneMinuteCode. All rights reserved.