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: How to choose something that matches the beginning or end, but is not both?

I have this situation: the regular expression is like this:
^ b? A b? $

So b can match at the beginning of the string 0 or 1, and A must match one or more times. Again b can match 0 or 1 tim

October 18, 2021By Simo Regexp Both, end, expressions, how to choose, match, not, regular, Start, ThingsLeave a Comment

Regular expression – automatically inserts a newline in the long string

Is it possible to insert a newline character in such a string so that it can be adjusted automatically so as not to split words?

nif <- as.character(c("I am a string", "So am I", "I am also

October 18, 2021By Simo Regexp automatic, expression, INSERT, long, Medium, regular, string, WrapLeave a Comment

Regular expression – What is the regular expression of the Jabber ID?

Now I am using this regular expression:

^\A([a-z0-9\.\ -_\+]+)@((?:[-a-z0-9]+\.)+[az]{2,})\Z$ I think this is not very good. So what is the best regular expression you have or have seen when

October 18, 2021By Simo Regexp expression, ID, jabber, regular, verification, whatLeave a Comment

Regular expressions match characters for specific locations

I need to come up with a regular expression to find only the letters A, F or E in the 9th digit of a given text. I am new to regex and did some searching, but I can’t find it To any similar reply.

October 18, 2021By Simo Regexp Characters, expressions, location, matching, regular, specificLeave a Comment

Regular expression mobile phone number verification and mailbox verification

1. Realize regular expression mobile phone verification.

Common mobile phone numbers are all 11 digits

The first 3 digits indicate the region and the operator

Regular expression ^

October 18, 2021By Simo Regexp and mailboxes, expressions, mobile phones, numbers, regular, verificationLeave a Comment

Regular expression – strings in the single click using Perl

My opinion:

my $tmp = “rrccllrrc”; Expected output :

$tmp = “right right center center left left right right center”; #End should not be spaced definitely. My code:< /p>

$tmp=~s/c

October 18, 2021By Simo Regexp click, expression, in the string, perl, regular, REPLACE, usageLeave a Comment

Regular expression – hold the first two parts of the string have separator

Is there a more concise/perfect way of the following:

my @components = split /-/, $original ;
my $final_string = $components[0].”-“.$components[1]; The input is a maximum of 2 strings-the las

October 18, 2021By Simo Regexp SneefficientLeave a Comment

Regular expression – regular expression matches any URL parameter value (Perl syntax)

I’m trying to find a pattern that allows me to select the value part of the Parameter = Value element of the URL string. I hope it is generic enough that I can replace the “parameter” with any term

October 18, 2021By Simo RegexpLeave a Comment

Regular filtration special expressions

/**[ Filter and upload special emoticons Symbolic]
* @param $str
* @return mixed
*/
function filter_emoji($str)
{
$str = preg_replace_callback( //Perform a regular expression search and r

October 18, 2021By Simo Regexp expression, filtration, regular, specialLeave a Comment

Regular expression – lookup $ in the string

Based on the suggestion here: Find location of character in string, I tried this:

> gregexpr(pattern = ‘$’,”data.frame.name$variable.name”)
[[1]]
[1] 30
attr(,”match.length”)
[1] 0
attr(,”us

October 18, 2021By Simo Regexp expressions, in, location, lookup, regular, stringsLeave a Comment

Posts navigation

Page 1 Page 2 … 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