help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to match the less-than symbol in regex?


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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]