regex tag

48 questions


1 answers
74 views
0
Regular expression example question.

A regular expression that finds a group of one or more alphabets separated by a single space is ^([:alpha:]+?)+$ but I don't know why.^ and $ are starting and ending.[[:alpha:]+?] I don't know exactly...

2 years ago

1 answers
78 views
0
I don't know the Python regular expression that removes special characters.

If Python contains even one of the Windows file name unknown characters \:/ * ? < > | I want to replace those characters with spaces.I don't know how to write a regular expression to include ev...

2 years ago

1 answers
76 views
0
I want to delete a specific word from the Python string.

list = [(10) Hello, Today's weather is cold (43423)(apple) It's very cold]There's a string list like this.I want to delete all the strings in here, including parentheses.I wrote the re module like the...

2 years ago

1 answers
68 views
0
Regular expression example question. (Except specific words from sentences)

For example,a for b of cWhen there's this sentence,I want to extract the word for before and after.Let's say the function we extract is funcfunc(a for b of c, for, 1) -> afunc(a for b of c, for, 2)...

2 years ago

4 answers
69 views
0
I have a question for the regular show!

In the part where you enter the date, in EditText, Which regular expression allows you to enter only numbers from 1-31?ㅠ

2 years ago

2 answers
97 views
0
Extract DOM className to only the desired className using a regular expression.

Hello, I have a question about the regular expression, so I'm uploading it.In the case of multiple classnames as below, I would like to ask if there is a regular expression that extracts only classnam...

2 years ago

1 answers
85 views
0
How to count how many repetitions a particular character has

var temp = This is a string.;alert(temp.count(is)); // output '2'I'm looking for a function that counts how many strings in a particular string into a parameter when I insert a string like this, but i...

2 years ago

3 answers
83 views
0
Regular expression questions.

I'm checking the uri string, but it's really hard to understand even if I see a lot of regular expressions;;;So I have a question. Help!The conditions are as follows. If '/' appears in the last charac...

2 years ago

1 answers
54 views
0
In the regular expression, it is aaabbcdfsaabbbdfcsdaaddf that matches (a{1,3}b{1,5}) with (a{1,3}b{1,5}), so why is (a{1,3}b{1,5})* the first aaabb?

In the regular expression, it is aaabbcdfsaabbbdfcsdaaddf that matches (a{1,3}b{1,5}) with (a{1,3}b{1,5}), so why is (a{1,3}b{1,5})* the first aaabb?

2 years ago

1 answers
107 views
0
How to divide a string from a Java string to a line

In the JTextArea, I want to separate the strings by '\n'. The sauce below is not working properly. I've already tried '\r\n | \r | n'.public void insertUpdate(DocumentEvent e) { String split[], docStr...

2 years ago
« - 3 - »

© 2024 OneMinuteCode. All rights reserved.