Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^6: substituting 1 escaped character for another

by Veltro (Hermit)
on Jul 26, 2018 at 23:25 UTC ( #1219346=note: print w/replies, xml ) Need Help??


in reply to Re^5: substituting 1 escaped character for another
in thread substituting 1 escaped character for another

Don't assume that HTML cannot have weird characters

I was scanning a web page one time and this is how one of the lines of my code ended up to be:

if ( $tmpTxt =~ /\<option value=\"$c2\.php\?blue\=(.+?)\"/ ) { # rem +oved the \> because for some there is some kind of weird character b +etween the " and the > print $filehandle $1 . "\n" ; }

Replies are listed 'Best First'.
Re^7: substituting 1 escaped character for another
by Marshall (Canon) on Jul 27, 2018 at 02:22 UTC
    There are lots of possibilities - let's see what the OP has.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1219346]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2021-10-20 09:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My first memorable Perl project was:







    Results (79 votes). Check out past polls.

    Notices?