Skip to navigation Skip to content

Simon Technology Blog

  • Architecture
  • Cloud
  • Database
  • Develop
  • Hardware
  • Industry
  • Language
  • Mobile
  • Opensource
  • OS
  • Web
Main Navigation

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

How to delete a particular row that appears in the Vim file

I want to delete a line: this is an example, it appears multiple times in the file. What should I do?

Thank you,
AI Lisa

:g/This is an example/d

I want to delete a line: this is a

October 18, 2021By Simo Unix appearance, file, How to delete, line, Medium, multiple times, specific, VIMLeave a Comment

Shell string stitching

test.sh

#!/bin/bash
your_name=”runoob”
# Use double quotes to splice
greeting=”hello, “$your_name” !”
greeting_1=”hello, ${your_name} ! ”
echo $greeting $greeting_1
# Use single quotes

October 18, 2021By Simo Unix shell, splicing, stringLeave a Comment

SHELL variable foundation detailed

1. Introduction to variables Variables are places where data is temporarily stored and data tags. The stored data exists in the memory space, and the data corresponding to the variable can be retri

October 18, 2021By Simo Unix detailed explanation, foundation, shell, variableLeave a Comment

Use of the function in the shell

function is a script code block, you can name it yourself, and you can use this function anywhere in the script. If you want this function, just call the name of the function. The advantage of usin

October 18, 2021By Simo Unix functions, Medium, shellLeave a Comment

Mariadb Windows installation

1. Copy the installation file to the server < /p>

[client]
port=3307

[mysql]

default-character-set=utf8

[mysqld]

port=3307

#Program installation directory

basedir=E:/mariad

October 18, 2021By Simo Windows installation, Mariadb, windowsLeave a Comment

Regular expressions – Shielding strings in Perl using mask strings

I have a string like’xxox-x’, and I want to block every line in the file as follows:

> x Ignored (or just set to a known value)
> o stay the same
> – is a variable length field that can keep

October 18, 2021By Simo Regexp character string, stringLeave a Comment

Bash or Python for changing file spacing

I have a set of 10,000 files. In all of them, the second line looks like:

AAA 3.429 3.84 So there is only one space between AAA and the other two columns (required). The rest of the lines on

October 18, 2021By Simo Unix BASH, change, file, for, python, spacingLeave a Comment

Regular expression – how to search for six letters with letters in alphabetical order

I recently created a Perl script to search for words starting with D and E with the following code:

$infile =’words.txt’;
open(IN, $infile);
$count = 0;
while ($word = ) {
chomp($word );
if (

October 18, 2021By Simo Regexp alphabetical order, expression, how to use, letters, regular, search, Six, With, wordsLeave a Comment

Posts navigation

Page 1 … Page 53 Page 54 Page 55 … Page 590
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