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 – what is the fastest way to determine the full URL from a relative URL (given basic URL)

I am currently using the module URI::URL to generate a complete URL from a relative URL; however, it does not run as fast as I hoped. Does anyone know of another approach possible Will be faster?

October 18, 2021By Simo Regexp Basic, complete, determination, expression, fastest, given, method, regular, relative, URL, whatLeave a Comment

Regular expression – how to delete duplicate characters, but leave two?

If there are more than 2 characters
“Hiiiiiii
My friend!!!!!!!”

I need to reduce to
“Fei Yichuan
My friend!!”

Please note that in my language, there are many double-character words.
T

October 18, 2021By Simo Regexp character, delete, expression, How, left, regular, Repeat, where twoLeave a Comment

Regular expression php: Find everything in DIV

I am trying to use regexp to find eveything in a div. I know there may be a smarter way – but I chose regexp.

So currently My regular expression pattern is as follows:

$gallery_pattern

October 18, 2021By Simo Regexp all, Content, div, expression, found, in, PHP, subsequentLeave a Comment

Regular expressions – Split a number with a number in R

How to split a string containing numbers (unknown digits) into two strings-the number and the rest of the string. Please note that there may be other undesirable characters in the string The number

October 18, 2021By Simo Regexp Digital, expression, final, Medium, Number, one, regular, SplitLeave a Comment

Regular expression – regular expression moves the beginning of the string to the end in Notepad

I have a text file like this:

marc_webber
john_grisham
rahmin_darfur
firstname_lastname I want to output something like this (forget the double name like “van These”):

Webber, Marc, mar

October 18, 2021By Simo Regexp end, expressions, middle general, Mobile, Notepad, regular, Start, stringLeave a Comment

Regular expression – Which regular expressions I should use in Common Lisp?

I am trying to learn Common Lisp and want to use regular expressions to parse text files. Which library is the easiest to use for a beginner like me? Am I correct to assume that it depends on the C

October 18, 2021By Simo Regexp expression, expressions, in Common, Library, Lisp, regular, should, Used, whichLeave a Comment

Regular expression matching URL does not contain a given string set

I need to match all that does not contain /admin/or? page = URL.

I will use it as a redirect rule in the iirf.ini file (htaccess syntax is supported).

How can I do this ?

^(?!.*(/

October 18, 2021By Simo Regexp expressions, given, INCLUDE, matching, regular, set, string, URLLeave a Comment

Regular expression – overlapping text replacement using Perl regular expression

I have a text file containing a bunch of sentences. The sentences contain spaces (spaces, tabs, new lines) to separate words composed of letters and/or numbers.
I want to find the word “123” or “

October 18, 2021By Simo Regexp expressions, overlap, perl, regular, replacement, Text, useLeave a Comment

Regular expression problem: independent location of words

Is it possible to define a regular expression pattern that checks for example. The 3 words are independent of their position in the main chord?

For example, my string is like “click here to u

October 18, 2021By Simo Regexp expression, independence, location, problem, regular, WordLeave a Comment

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

Posts navigation

Page 1 … Page 4 Page 5 Page 6 … 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