expression tag

115 questions


1 answers
84 views
0
I want to replace the array with a regular expression.

For example, consider the following protein, i.e., an arbitrary sequence of 20 amino acids (characters): MNIFEMLRIDELRLKIYKDTEYTIIHLLTKSLNAAKSELDKAIRNTNVITKDEAEKLFNQDVDAAVRILRNAKLKPVYDIn fact, protein...


1 answers
62 views
0
a regular expression that is a half-width number up to five digits and does not allow "0 only"

Can such regular expressions be written?Thank you for your cooperation.0 → out 00→out000→out0000→out00000→out1 → ok123→ok0123→ok00123→ok12345 → ok

1 years ago

3 answers
68 views
0
Please tell me the difference between reg_match and preg_match.

What is the difference between reg_match and preg_match?Both seem to match with regular expressions, but I can't decide which one to use.If it's almost the same function, which one should I use for no...

1 years ago

1 answers
46 views
0
I want to extract the last half-width alphanumeric characters in a regular expression.

Questions about regular expressions.■ OverviewWell, after abc, it's def.Please tell me the regular expression string to match the def of the above sentence.■ Logic ***LOL I want to extract the last ha...

1 years ago

1 answers
60 views
0
Understanding Node.js Special Character Processing When Writing Files

I am creating a Latex editor, and I am struggling to write files there, so I would like to ask you to teach me.I would like to post the text data you entered to the server in json format and write it ...


1 answers
84 views
0
Is it possible to exclude only query parameters from the URL string using regular expressions while leaving hash?

For example, if there is a URL like this https://www.example.com/test/?q=test&s=testhttps://www.example.com/hoge/?q=foo&s=faa#hogeI would like to exclude only query parameters and extract the ...

1 years ago

2 answers
58 views
0
I want to match the part of a regular expression that spans multiple lines in parentheses.

In javascript, I would like to get a regular expression of the sentence ending with . in the part that is not surrounded by to from the text below. Ayeo[AIUEO。kakikukeko。]Hi, everyone.goodbye。helloThe...


2 answers
54 views
0
I want to use Python's regular expression to extract specific points from the string.

We would like to extract only the necessary information from the body of the Outlook email.The part you want to extract has a mix of numbers (up to 5 integers and 1st place in the minority) and you ar...


3 answers
72 views
0
I want to match characters other than those enclosed in parentheses `[]`

I want to match characters other than those enclosed in parentheses [], but I don't know.Aiueo [Dark] Kakikukeko [Fuga] ↓ String to match AiueoKakikakeko

1 years ago

1 answers
56 views
0
[mod_rewrite] I don't want to open anything other than the specified file even if I access it with ".php".

Thank you for your help.The site you are currently managing is For example http://example.com/files/contentIn response to the request, you can use .htaccess.RewriteRule^files/([0-9A-Za-z_)]+)$1.php[QS...

« - 7 - »

© 2024 OneMinuteCode. All rights reserved.