expression tag

115 questions


1 answers
103 views
0
Is it safe to use a string received remotely in MongoDB search as a regular expression?

The regular expression says there is a risk of Denial of Service Attacks (ReDOS) that increase processing time exponentially.http://blog.ohgaki.net/regex-dos-redosIn fact, running the following code i...


1 answers
58 views
0
I want to delete all tags in the string in the SQL regular expression.

Below is the data from the post_content column (type=LONGTEXT) in the wp_posts table.target data:<h1id=title1>h1</h2><a href=#title1>aaa</a><a href=#title2>bbb</a>&...


1 answers
63 views
0
How do I retrieve a string that matches the regular expression of a VBA without postreading?

I have a question about regular expressions in vba. I looked it up on vba and found that it doesn't read afterwards. [~~~]Could you tell me how to avoid reading after matching only the characters in p...

1 years ago

1 answers
52 views
0
preg_match_all I want to match the regular expression as intended

I would like to remove all &a> tags and all &br> tags after which the href starts with #title as shown below. preg_match_all is not working well with the current code.How should I change it?$con...

1 years ago

1 answers
102 views
0
Please tell me how to extract the next line of the search string from the regular expression of VBS (with a new line).

(Note) Search for the specified string by regular expression.https://msdn.microsoft.com/ja-jp/library/cc392389.aspxFunction RegExpTest (patrn, strng) Create the DimregEx, Match, Matches' variable. Cre...

1 years ago

2 answers
64 views
0
I want to search the array by regular expression.

I apologize if there is not enough to describe. What do you want to doI'd like to search in the array using the regular expression to get the most elemental string in the match string. Current stateIf...

1 years ago

1 answers
52 views
0
When you use `|` with a group in Python re.sub() regular expression, you want to use a matching string in the string to be replaced.

What should I do if I want to use the matching string in re.sub() as the replacement string?I follow the method described in the document, but it does not print well.Current state codeimport reif__nam...


2 answers
62 views
0
If the regular expression does not match, I want it to match the original string.

I'd like to match a regular expression before a specific string.To match the original string if the specific string is not included:What should I do?What you want to extract: If the target includes aa...


3 answers
55 views
0
How to Extract Time from a String Using Regular Expressions on Python

Use regular expressions on Python to extract the time from a mixed time and Japanese string.Only the time part of the time is extracted, and the whole thing doesn't go well.import retime_str = '10:19 ...


1 answers
61 views
0
There is an error in the regular expression, but I would like you to tell me about the fixed width of the post-reading.

I am scraping and would like to extract Shinjuku from the data below.<td>1</td>,<td class=stationName><a href=http://www.jreast.co.jp/estation/station/info.aspx?StationCD=866>S...

« - 9 - »

© 2024 OneMinuteCode. All rights reserved.