in reply to Re: How to extract special charachetrs like <=, >= != from string
in thread How to extract special charachetrs like <=, >= != from string
We can even shorten this with character class []
use strict; use warnings; use Data::Dumper; while(<DATA>) { print "$1\n" if($_ =~ /([><=!]+)/g) } __DATA__ $this vinoth $that $this >= $that $this gt $that $this != $that $this ne $that $this == $that $this eq $that
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to extract special charachetrs like <=, >= != from string
by Anonymous Monk on Aug 14, 2015 at 08:13 UTC | |
|
Re^3: How to extract special charachetrs like <=, >= != from string
by james28909 (Deacon) on Aug 14, 2015 at 05:52 UTC | |
by choroba (Cardinal) on Aug 14, 2015 at 05:58 UTC | |
by soonix (Chancellor) on Aug 14, 2015 at 06:44 UTC | |
by vinoth.ree (Monsignor) on Aug 14, 2015 at 06:30 UTC | |
by james28909 (Deacon) on Aug 14, 2015 at 06:45 UTC | |
by soonix (Chancellor) on Aug 14, 2015 at 07:18 UTC |