vskatusa has asked for the wisdom of the Perl Monks concerning the following question:
However, when I use this is in code as follows, it does not work<span class="Trsdu(0.3s) Fw(b) Fz(36px) Mb(-4px) D(ib)" data-reactid=" +33">
Tried escaping following charcters:if (string =~ m/<span class="Trsdu(0.3s) Fw(b) Fz(36px) Mb(-4px) D(ib +)" data-reactid="33">/) { print "match\n"; } else print "no match"; }
and tried the following:( ) . -
I am sure I am doing something wrong and I know RE sometimes gets complicated. Can monks educate me?if (string =~ m/<span class="Trsdu\(0\.3s\) Fw\(b\) Fz\(36px\) Mb\(\- +4px\) D\(ib\)" data\-reactid="33">/) { print "match\n"; } else print "no match"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Regular Expression Help
by marto (Cardinal) on Apr 24, 2020 at 17:26 UTC | |
|
Re: Regular Expression Help
by haukex (Archbishop) on Apr 24, 2020 at 17:24 UTC | |
by vskatusa (Acolyte) on Apr 27, 2020 at 18:45 UTC | |
by haukex (Archbishop) on Apr 27, 2020 at 20:31 UTC | |
|
Re: Regular Expression Help
by davido (Cardinal) on Apr 24, 2020 at 18:57 UTC | |
|
Re: Regular Expression Help
by hippo (Archbishop) on Apr 24, 2020 at 17:28 UTC |