![]() |
|
Keep It Simple, Stupid | |
PerlMonks |
Unescaping JavaScript stringby a01 (Initiate) |
on Mar 18, 2016 at 03:54 UTC ( #1158186=perlquestion: print w/replies, xml ) | Need Help?? |
a01 has asked for the wisdom of the Perl Monks concerning the following question: Hi Monks, I need my Perl script to unescape a JavaScript string literal that is in a <script> tag in HTML code that I need to parse. For example:
If I capture the string with a regular expression, I get the string: https\x3a\x2f\x2fexample.com I need to decode this to: https://example.com How do I do this in Perl?
Back to
Seekers of Perl Wisdom
|
|