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

Tag: string

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

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

IPA Upload Feedback Please modify the application info.plist file problem

After many developers uploaded ipa, they received a feedback email from Apple saying that please modify the relevant use string in the application info.plist file!

It means that the requested

October 18, 2021By Simo Windows Applications, feedback, file, INFO, info.plist, interpretation, invitations, IPA, PLIST, problem, Programs, string, Uploaded, useLeave a Comment

Regular expressions replace strings with another string in MS Word?

Can anyone help me change the regular expression:

filename_author to

author_filename I am using MS Word 2003, and I am trying to use Word’s Find and Replace. I have tried using the wild

October 18, 2021By Simo Regexp expression, one, regular, replacement, string, WordLeave a Comment

Bash – single quotes of characters AWK scan string

I have a line and I want to know if there are any embedded single quote characters in it. Using awk, I tried several variations

badix = index($0,”47″) – this does not find it
badix = index($

October 18, 2021By Simo Unix AWK, BASH, Characters, quotation marks, scanning, single, stringLeave 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 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 – check if there is only space in the string

How to check if there are only spaces in a string?

I want to use conditions in an if() statement.

For example,

str<-" "< br />#check if str has only white spaces? example usage
i

October 18, 2021By Simo Regexp check, expression, in, is there, only, regular, stringLeave a Comment

Regular expression – What is the best way to make a string operation in a shell script?

I have a path as a string in a shell script, which can be absolute or relative:

/usr/userName/config.cfg< /p> or

../config.cfg

I want to extract the file name (the part after the

October 18, 2021By Simo Regexp expression, method, middle, operation, optimal, procedure, regular, Script, shell, string, whatLeave a Comment

Regular expression – Why does this frontal assertion does not work when anchored to the beginning of a string?

Why does this post-assertion not work when it is fixed at the front of the string? Run the following code, and you will see that the first test passes, but the second test only passes the ^ anchor

October 18, 2021By Simo Regexp Anchor, assertion, back, expressions, front, inseparable, regular, set, Start, string, This, time, whyLeave a Comment

Posts navigation

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