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 – delete parameters using MOD_REWRITE

I want to use mod_rewrite to delete a specified query parameter from the URL.

Example:
1) User enters the URL:

http://localhost/intra/page.htm?var1=123&var2=456&var3=789 2)mod_rewrite

October 18, 2021By Simo Regexp delete, expressions, MOD, parameter, regular, rewrite, useLeave 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 – delete comments using Perl

Is there any regular expression that can remove all comments in a given C program // and / ** / var from perl?

Given a multi-line program, it should use regular expressions to remove comments

October 18, 2021By Simo Regexp Comment, delete, expressions, perl, regular, useLeave a Comment

Regular expressions for combining numbers

I have a series of numbers as follows. I want to combine the numbers into 4 groups. Can someone give vim regular expressions?

Input: 1234 56 7890 1234

The output should be: 1234 5678 90

October 18, 2021By Simo Regexp combination, expressions, for, numbers, regularLeave a Comment

Regular expression – the best modern text parsing? When is AKA to use Lex and Yacc?

I have commands and parameters for inputting text blocks, one per line, such as

XYZ ARG1,ARG2,ARG3, …, ARGN I want to verify whether the parameters of XYZ are applicable to that particular

October 18, 2021By Simo Regexp AKA, analysis, best, expressions, lex, modern, regular, Text, use, when, yaccLeave a Comment

Regular expression

Regular Expression (Regular Expression) is a very powerful tool for string retrieval, filtering, and replacement operations. It is often used in daily work. There is a need to find a string that me

October 18, 2021By Simo Regexp expressions, First, regular, solutionLeave 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 – parts matching with EGREP regular expression

I want to know, if I use egrep ((GNU grep)2.5.1), I can select a part of the matching text, for example:

grep’^([a-zA-Z.-]+)[0-9]+’ ./file.txt So I only get the matching part between th

October 18, 2021By Simo Regexp EGREP, expressions, matching, partial, regularLeave 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

Posts navigation

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