Skip to navigation Skip to content
Simon Technology Blog
  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

Tag: expression

Regular expression – Search repeated files across multiple directory

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

October 18, 2021By Simo Regexp catalog, Content, cross, expression, file, lookup, multiple, press, regular, repetitionLeave a Comment

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

October 18, 2021By Simo Regexp Copy, expression, How, plural, regular, search, version, WordLeave a Comment

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

October 18, 2021By Simo Regexp expression, How, IP, modification, port, regularLeave a Comment

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

October 18, 2021By Simo Regexp check, expression, in, is there, only, regular, stringLeave a Comment

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

October 18, 2021By Simo Regexp expression, method, middle, operation, optimal, procedure, regular, Script, shell, string, whatLeave a Comment

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.

October 17, 2021By Simo Regexp Cut, expression, Paste, Processing, regular, SORT, Text, UNIQLeave a Comment

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]

October 17, 2021By Simo Regexp confusion, expression, perl, regular, statementLeave a Comment

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

October 17, 2021By Simo Regexp expression, Medium, regular, substring, twice, useLeave a Comment

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.

October 17, 2021By Simo Regexp deletion, expression, line, regular, repetition, useLeave a Comment

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

October 17, 2021By Simo Regexp 9a, expression, fa, regular, the sameLeave a Comment

Posts navigation

Page 1 … Page 3 Page 4 Page 5 Page 6
Recent Posts
  • Sencha-Touch-2 – Sencha Touch 2, Nested XML Analysis NodeValue
  • Add a separation line and format XML content
  • Is there a norm of simplified XML subsets?
  • Look at it when you write React
  • ReactJS – Present React Redux React-Router App to add the server to the Firebase hosted by the Firebase
Categories
  • Android
  • Apache
  • Apache Kafka
  • Asp
  • Auto-Test
  • Automated Build
  • Aws
  • Bitcoin
  • Browser
  • C & C++
  • C#
  • Centos
  • Cgi
  • Character
  • Cloud Service
  • Cocos2dx
  • Cordova
  • CSS
  • Data Structure
  • Delphi
  • Design Pattern
  • Dojo
  • Dubbo
  • ELK
  • Flex
  • football
  • Game
  • Hadoop
  • Hibernate
  • HTML
  • Hybrid
  • Intel
  • IOS
  • Ipad
  • iPhone
  • Java
  • Javascript
  • Jetty
  • JQuery
  • Jsp
  • Linux
  • Load Balance
  • Lua
  • Macbook
  • Macos
  • Mathematics
  • Micro Services
  • Monitoring
  • Motherboard
  • Mysql
  • Network Hardware
  • Network Marketing
  • Nginx
  • NodeJs
  • Nosql
  • Oracle
  • Os Theory
  • Performance
  • PHP
  • Postgresql
  • Power Designer
  • React
  • Redis
  • Regexp
  • Rom
  • Rss
  • Ruby
  • Search Engines
  • Shell Script
  • Silicon Valley
  • Silverlight
  • Software Design
  • Spring
  • Sql
  • Sqlite
  • Sqlserver
  • Storage
  • Storm
  • Surface
  • SVN
  • Swift
  • System Architecture
  • Tablet
  • Uncategorized
  • Unix
  • Visual Basic
  • Visual Studio
  • Web Crawler
  • WebService
  • Windows
  • Wireless
  • XML
  • ZooKeeper
Archives
  • October 2021
  • September 2021
  • August 2021
  • May 2021
  • April 2021
  • September 2020
  • September 2019
  • August 2019
  • June 2019
  • May 2019
  • April 2019
  • March 2019
© Simon Technology Blog 2025 • ThemeCountry Powered by WordPress