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: 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 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 – 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

Generate a directory outline of an article with a regular expression

In the projects we are doing, it is often involved in the image processing of the article (the base64 image is saved on the server and converted to the image link of the server), and the use of h1,

October 18, 2021By Simo Regexp articles, build, catalogs, expressions, outlines, regularLeave a Comment

Regular expression – replace the escape character in PowerShell

I have a string of…

“some text \\computername.example.com\admin$ “. How do I do the substitution so my final result is just “computername”

My question does not seem to know how to esc

October 18, 2021By Simo Regexp Characters, escape, expressions, Positive, PowerShell, replacementLeave a Comment

Regular expression – regular expression does not work in Go

Please forgive me for being an amateur of regular expressions, but I am really confused, why this is not a piece of code that does not work in Go

package main
import (
“fmt”
“regexp”
)
func

October 18, 2021By Simo Regexp expressions, Medium, regular, unreasonableLeave a Comment

Regular expression detects if the IP address and port number are legal

Regular expressions to check whether the IP address and port number are legal, the code is as follows:

Regular expressions to detect IP address

public static bool CheckAddress(string s)

October 18, 2021By Simo Regexp and legal, detection, expressions, IP addresses, numbers, ports, regularLeave a Comment

Regular expression – problems when capturing text between two letters

I use the following regular expression to get the text between /* and */:

(/\* )+(.+)(\*/) This method is good when this only needs to happen once, for example, when the entire string is like

October 18, 2021By Simo Regexp appearance, between, Capture, expressions, letters, problem, regular, Text, time, twoLeave a Comment

Regular expression and wildcard introduction

Wildcards and regular expressions 1. Wild-card patterns are generally used to match file names, which are parsed by the shell, and are generally used for find (file search), ls (directory), cp (Cop

October 18, 2021By Simo Regexp expressions, profile, regular, wildcardLeave a Comment

Posts navigation

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