expression tag

115 questions


1 answers
50 views
0
Which is more suitable, Boost.Regex or Onigmo, in terms of using regular expressions and dealing with Japanese kanji sentences?

Thank you for your help.Which is more suitable, Boost.Regex or Onigmo, in terms of using regular expressions and dealing with Japanese kanji sentences?I think I can do both, but is there any place whe...

1 years ago

1 answers
61 views
0
be unable to exclude parts of speech that someone's speech

I am processing sentences with Python and MeCab.for text indf [msg_body]: for line in mecab.parse(text).rstrip().splitlines(): items=line.split(\t) iflen(items) == 2: surface, feature=items if re....


2 answers
59 views
0
Is there a way to use variables in the regular expression literal?

Using RegExp, generate regular expression objects from the variable str in the following formatlet regexp = new RegExp(str+'(.*?), 'gmi');Is it possible to write in the regular expression literal?I co...


1 answers
59 views
0
I want to replace it without double quotes.

Hello, I'm a college student.I'm having trouble trying to replace it without being surrounded by double quotes.It doesn't have to be a single replacement.vim is replacing it and is trying to replace i...

1 years ago

1 answers
58 views
0
I want to extract two path elements from the end of the URL.

For example, https://example.com/theater/13/130301/3271/Represents ISBN from the URL 130301/3271/I would like to extract as a key.sre_constants.error:missing), unterminated subpattern at position 1I g...


1 answers
70 views
0
I want to extract strings other than alphabetic-numeric-numeric configurations.

when you have the following text:A-7-2D-1-5D-1-5A-1D-1-5, A-2-5G-5-21, B-3, A-2-5I want to make sure that only alphabetic-numeric-numeric characters are extracted (A-1 and B-3 here).What regular expre...

1 years ago

3 answers
77 views
0
To Split a String with Double Quotation into Spaces

We are looking for a way to split each keyword if you enter one or more keywords for a full-text search, such as Google Search.I'd like to divide the following strings separated by half-width and full...

1 years ago

3 answers
80 views
0
Regular expression to verify that it is plain text

Perl's program indicates that a file is written in plain text only.I'd like to distinguish by regular expressions, but I'm worried about how I should write a pattern to realize it.Linux file commands ...

1 years ago

1 answers
61 views
0
I want to match the string in the csv file with the csv file.

I want to delete the second hyphen or subsequent character of each URL in out.csv.The following error appears.I know it's a type error, but I don't know what the situation is and the solution is.TypeE...


2 answers
50 views
0
Detecting a numeric string that does not have '$' at the beginning of a numeric string in a read string after denying a regular expression

.NET 4.5input=abc123def $456ghi (Note string and numeric string are both random)I want to find a string of digits that does not have $ at the beginning (I want to find 123 only)pattern=(?\<!\$)\d+I...

1 years ago
« - 10 - »

© 2024 OneMinuteCode. All rights reserved.