I downloaded some files related to a specific topic from the Internet. Now I want to check if there are any duplicates in the files. The problem is that the names of the files will be different, bu
Tag: expression
Regular expression – how to search for words or plural versions [copy]
See the English answer> Regex search and replace with optional plural 4
I am trying to make a simple regular expression, what I want to do is to match the strange part of a word, Whether it has an
Regular expression – how to modify IP: PORT regular expressions?
I have normal expressions
match = re.findall(r'[0-9]+(? :\.[0-9]+){3}’, source) It can get content similar to 192.168.1.1 from the source string.
How do I modify this regular expression to ma
Regular expression – check if there is only space in the string
How to check if there are only spaces in a string?
I want to use conditions in an if() statement.
For example,
str<-" "< br />#check if str has only white spaces? example usage
i
Regular expression – What is the best way to make a string operation in a shell script?
I have a path as a string in a shell script, which can be absolute or relative:
/usr/userName/config.cfg< /p> or
../config.cfg
I want to extract the file name (the part after the
Text handling CUT, SORT, UNIQ, PASTE regular expression
Text processing cut, sort, uniq, paste regular expressions 1 cut Extract text by column cut -d DELIMITER -f FILEDS .example,cut -d: -f1, use- d: Colon separator, use f1 to get the first column.
Regular expression – Perl if statement confusion
This code is an if statement; I want to test whether $rtgene contains trn.
I tested the code with $rtgene = nad3:
if ($rtgene!~/trn/){
$end=$data[$i][0]+100;
}
else{< br />$end =$data[$i][1]
Use a sub-string twice in regular expressions
First of all, this question may have been asked before, but I am not sure what phrase to search for.
I have a string:
Maaaa
I have a pattern:
aaa< /p> I want to match twice
Use regular expressions to delete duplicate rows
I have a list of html links, most of which are repeated, as in the following example->
> http://example.com/some/a-test-link.html
> http://example.com/some/a-test-link.html
> http://example.
Regular expression – [0-9A-FA-F] is the same as [0-9A-F-A-F]?
Are these two equivalent? [0-9a-fA-F] and [0-9a-fAF]
In some texts, I have been trying to use egrep these two regular expressions, they seem to be equivalent .
Is there a case where they will