how can I test if a string matches a particular string matches regex with a basic (no bash or anything) posix shell script (in an if statement)?
相关问题
- How to get the return code of a shell script in lu
- Is shmid returned by shmget() unique across proces
- Invoking Mirth Connect CLI with Powershell script
- Improve converting string to readable urls
- Regex to match charset
相关文章
- 使用2台跳板机的情况下如何使用scp传文件
- In IntelliJ IDEA, how can I create a key binding t
- shell中反引号 `` 赋值变量问题
- How get the time in milliseconds in FreeBSD?
- Optimization techniques for backtracking regex imp
- Regex to check for new line
- Allow only 2 decimal points entry to a textbox usi
- Comparing speed of non-matching regexp
You can use
expr
command to evaluate regular expression in a POSIX shell:expr
returns # of matched characters which is 3 in this case.