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

Category: Regexp

Regular expressions, also known as regular expressions. (English: Regular Expression, often abbreviated as regex, regexp or RE in the code), a concept of computer science. Regular tables are usually used to retrieve and replace texts that conform to a certain pattern (rule). Many programming languages support string manipulation using regular expressions. For example, a powerful regular expression engine is built in Perl, and the Java language comes with it. The concept of regular expressions was first popularized by tools in Unix (such as sed and grep). Regular expressions are usually abbreviated as “regex”. The singular includes regexp and regex, and the plural includes regexps, regexes, and regexen.

Regular expression – Why does this frontal assertion does not work when anchored to the beginning of a string?

Why does this post-assertion not work when it is fixed at the front of the string? Run the following code, and you will see that the first test passes, but the second test only passes the ^ anchor

October 18, 2021By Simo Regexp Anchor, assertion, back, expressions, front, inseparable, regular, set, Start, string, This, time, whyLeave a Comment

How to match the comparative operator in the regular expression

I am trying to create a regular expression that matches comparisons like this:

= 445
> 5
>= 22
< 3 <= 42 <> 10 I think this will work, but it won’t:

[=|>|<|>=|<|<=|<>]\s\d+ ‘>’very imp

October 17, 2021By Simo Regexp comparison, expressions, How to match, Medium, operators, regularLeave a Comment

Regular expression – Rewritecond Request_uri – ^ Can’t work as expected

I am using codeigniter to build a site. I have a series of rewrite conditions & rules in the .htaccess file. The first set of rules turn on or off SSL based on the first paragraph of the uri.

October 17, 2021By Simo Regexp can't press, expected, expressions, regular, Request, Rewritecond, URI, WorkLeave a Comment

Regular expression – PHP appearance

I have a string, for example:

$foo =’Hello __(“How are you”) I am __(“very good thank you”)’ I know this is a strange string, but please come with me: P

I need a regular expression to f

October 17, 2021By Simo Regexp appearance, expressions, PHP, regularLeave a Comment

Regular expression – Multi-line match in Haskell POSIX

I can’t seem to find suitable documentation on Haskell’s POSIX implementation.
Especially the module Text. Regex.Posix.

Anyone Can you point me in the right direction to use multi-line match

October 17, 2021By Simo Regexp expressions, Haskell, matching, Medium, Multi-line, POSIX, regularLeave 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 6 Page 7 Page 8 Page 9
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