They can be used inside a "[ ] Bracketed Character class" with capture (see perldoc perlre).
perl -e '($x=shift()) =~/([=<>!]+)/ and print "\[$x] has \[$1]\n"' "Ra +nge is != 4%" [Range is != 4%] has [!=]
Clarity: it's like that one thing that is not the other thing, except for when it is.
In reply to Re: How to extract special charachetrs like <=, >= != from string
by NetWallah
in thread How to extract special charachetrs like <=, >= != from string
by gjoshi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |