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

Tag: expressions

Regular expression – regular expression matches two unequal numbers

I want to know how to match two numbers, but they are not the same. So, match 12, but not 11, which would be fine.

What I have now is:
I have to match a string like “P12”, I completed it wit

October 18, 2021By Simo Regexp expressions, matching, not equal, numbers, regular, twoLeave a Comment

Regular expression – how to match two values, not depending on their corresponding position in the string

I am looking for the best way to match two values ​​at the same time.

If both values ​​are in the string, I want to get a true value, But I don’t know the order in which they appear in the st

October 18, 2021By Simo Regexp corresponding, Dependent, expressions, How to match, position, regular, two, valuesLeave 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 – 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

Posts navigation

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