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

Tag: regular

Get the file from the specified address, the regular match, output to the specified form

import pymysql import re conn = pymysql.connect( host=’localhost’, port=3306, user=’root’, passwd=’123456′, db=’test’, charset=’utf8′, ) cursor = conn.cursor() f = open(‘D:\fil

October 17, 2021By Simo Regexp acquisition, Address, designation, file, match, Output, procedure, regular, Specify, tableLeave a Comment

How to track the execution of regular expressions?

Is there a convenient way to get the status of the regular expression engine when evaluating m // or s /// expressions?

By the way, I know that the Regexp::Debugger package is available throu

October 17, 2021By Simo Regexp execution, expressions, How to track, matching, regularLeave a Comment

Can I use a regular expression to search in an array?

I have an array of strings. I need to use regular expressions to search for strings in the array. Is it possible? If so, please explain.. $a = preg_grep(“/search_word/”,$array_of_strings);
print

October 17, 2021By Simo Regexp Arrse, expression, Inso, PHP, regular, use, Used, whether, YesLeave a Comment

Common regular expression

[email protected] Only English letters, numbers, underscores, full stops, and underscores are allowed

^[a-zA-Z0-9_-][emailprotected ][a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$

高子航[email protect

October 17, 2021By Simo Regexp common, expression, regularLeave a Comment

Regular expression – AWK line symbol regular expression

I have a simple awk script called “script.awk”, which contains:

//some_simple_string / {print $0;} I use it to parse some files containing the following content:
(by using: cat file | awk -f

October 17, 2021By Simo Regexp AWK, expressions, regular, Row, SymbolsLeave a Comment

Ruby – Regular expression, look for strings that include but not starting with strings

I am parsing a text file, traversing each line, and I am having trouble finding regular expressions. Part of this parsing involves changes appearing, for example: & Eacute; and & eacute;

October 6, 2021By Simo Ruby expression, included, lookup, regular, ruby, Start, stringLeave a Comment

Pit in the regular expression in Lua

When I use OpenResty to write Lua code, I need to use Lua regular expressions, where the pattern is like this,

–Water heater setting time
local s = ’12:33′
local pattern = “(20|21|22|23|[01

October 5, 2021By Simo Lua expression, lua, Medium, pit, regularLeave a Comment

Protobuf3: String verification using regular expressions

I have been using Protobuf3 to define PB messages:

syntax = “proto3”;
package vioozer_protobuf ;
message Update
{
string sensor_id = 1;
…
} In my system, The sensor has a unique id format

October 1, 2021By Simo Micro Services expression, Protobuf, Protobuf3, regular, string, use, verificationLeave a Comment

String objects and regular expressions

一·String object method

Concept: multiple characters Read-only character array………String is essentially an array

and an array

1. The original array can be modified at will, bu

August 22, 2021By Simo Regexp expression, object, regular, stringLeave a Comment

Grok resolution regular expression

I use the following regular expression:

INT (?:[+-]?(?:[0- 9]+))
VALUE ([0-9]+)
SPACE \s*
DATA .*?
USERNAME [a-zA-Z0-9._- ]+
YEAR (?>\d\d){1,2}
MONTHNUM (?:0?[1-9]|1[0-2])
MONTHDAY (? :(?:0[1

August 22, 2021By Simo Regexp expression, Grok, regular, ResolutionLeave a Comment

Posts navigation

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