|
From: | Peng Yu |
Subject: | How to match the less-than symbol in regex? |
Date: | Tue, 17 Mar 2020 19:23:21 -0500 |
Hi, I am not able to match "<" in the regex. I am not sure what is wrong. Could anybody show me how to match "<" in regex? Thanks. $ [[ '9<' =~ '^([0-9]+)<$' ]]; echo $? 1 -- Regards, Peng
[Prev in Thread] | Current Thread | [Next in Thread] |