109 questions
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...
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>&...
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...
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...
(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...
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...
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...
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...
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 ...
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.