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 extraction part URL

I’m lazy tonight and don’t want to figure this out. I need a regular expression to match’jeremy.miller’ and’scottgu’ in the following input:

http://codebetter.com/blogs/jeremy.miller/archive/

October 18, 2021By Simo Regexp expression, extraction, part, regular, URLLeave a Comment

Regular expression – Assess postal code input to Perl array

I have an array containing the first 2 characters of the postal code area in Perl, as shown below:

@acceptedPostcodes = (“CV”, “LE”, “CM”, “CB”, “EN”, “SG”, “NN”, “MK”, ​​”LU”, “PE”, “ST”, ”

October 18, 2021By Simo Regexp Arrse, evaluation, expression, input, perl, Postal Code, regularLeave a Comment

Regular expression – how to replace the intraline tag with spaces, keep alignment?

I like to use spaces to indent rather than labels; in sed or vim, it is easy to replace tabs at the beginning of the line:

s/^I/ /g But if there are tabs in a line (assuming the space i

October 18, 2021By Simo Regexp Alignment, expression, How, intraline, Keep, Label, regular, REPLACE, spaceLeave a Comment

Regular expression tests cannot make a decision between True and False (JavaScript)

I have this behavior in Chrome (Developer Tools) and Firefox (Firebug). Please note that the regular expression test returns alternating true/false values: < /p>

> var re = /.*?bl.*gr.*/gi;

October 18, 2021By Simo Regexp JavaScriptLeave a Comment

Regular expressions replace strings with another string in MS Word?

Can anyone help me change the regular expression:

filename_author to

author_filename I am using MS Word 2003, and I am trying to use Word’s Find and Replace. I have tried using the wild

October 18, 2021By Simo Regexp expression, one, regular, replacement, string, WordLeave a Comment

Regular expression – crash course and effective search and replacement in regular expressions

Is there a good regular expression tutorial? Especially in the context of TextMate? I am familiar with regular expression syntax and basic concepts. I even have a copy of Jeffrey Fried’s book “Mast

October 18, 2021By Simo Regexp courses, crashes, Effective, expressions, regular, replacement, searchLeave a Comment

Regular expression – you need to know the logic behind several regular expressions

I have a code as

$wrk = OC192-1-1-1;
@temp = split (/-/, $wrk);
if ($temp1[3] =~ /101 || 102 /)
{
print ” yes”;
} else {
print “no”;
} Output:

yes I need to know why this is p

October 18, 2021By Simo Regexp back, expressions, know, logic, needs, regular, severalLeave a Comment

Regular expression – AWK for separating words by underscore

I use awk very badly, but I know it is very useful for contingency operations.

I have a form file:

JohnSmith_name 3.4
KellySears_name 5.7
RonaldBay_name 1.2
RayShendor_name 2.8 I want

October 18, 2021By Simo Regexp AWK, expressions, isolated, regular, wordsLeave a Comment

Regular expressions – need to help regular expression matching blood type

I am trying to come up with a regular expression to help me validate the blood type field – it should only accept A [– ], B [– ], AB [–] and O [– ].

This is the regular expression I came up w

October 18, 2021By Simo Regexp blood type, expression, expressions, help, matching, need, regularLeave a Comment

Regular expression – replacing characters in Perl

I am trying to double all the vowels in each word. For example:

$string=”if it rains, cover with umbrella”; This is the code I wrote, but I did not get the correct output.

$string=~s/a

October 18, 2021By Simo Regexp character, expression, middle, perl, regular, replacementLeave a Comment

Posts navigation

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