Coloreado en 0.001 segundos, usando GeSHi 1.0.8.4
Using text Syntax Highlighting
{"scans": {"eSafe": {"detected": false, "version": "-", "result": null, "update": "-"}, "McAfeeBeta": {"detected": false, "version": "-", "result": null, "update": "-"}, "CAT-QuickHeal": {"detected": true, "version": "-", "result": "(Suspicious) - DNAScan", "update": "-"}, "FortinetBeta": {"detected": false, "version": "-", "result": null, "update": "-"}, "McAfee": {"detected": true, "version": "-", "result": "Spam-SamBurg", "update": "-"}, "SAVMail": {"detected": false, "version": "-", "result": null, "update": "-"}, "TheHacker": {"detected": false, "version": "-", "result": null, "update": "-"}, "VirusBuster": {"detected": false, "version": "-", "result": null, "update": "-"}, "F-Prot": {"detected": false, "version": "-", "result": null, "update": "-"}, "Symantec": {"detected": false, "version": "-", "result": null, "update": "-"}, "Norman": {"detected": false, "version": "-", "result": null, "update": "-"}, "Avast": {"detected": false, "version": "-", "result": null, "update": "-"}, "PandaBeta": {"detected": false, "version": "-", "result": null, "update": "-"}, "ClamAV": {"detected": false, "version": "-", "result": null, "update": "-"}, "Kaspersky": {"detected": false, "version": "-", "result": null, "update": "-"}, "BitDefender": {"detected": false, "version": "-", "result": null, "update": "-"}, "F-Secure": {"detected": false, "version": "-", "result": null, "update": "-"}, "DrWeb": {"detected": false, "version": "-", "result": null, "update": "-"}, "AntiVir": {"detected": true, "version": "-", "result": "TR/Dropper.Gen", "update": "-"}, "Sophos": {"detected": true, "version": "-", "result": "Mal/EncPk-DJ", "update": "-"}, "FileAdvisor": {"detected": false, "version": "-", "result": null, "update": "-"}, "Authentium": {"detected": false, "version": "-", "result": null, "update": "-"}, "eTrust-Vet": {"detected": false, "version": "-", "result": null, "update": "-"}, "Prevx1": {"detected": false, "version": "-", "result": null, "update": "-"}, "Microsoft": {"detected": false, "version": "-", "result": null, "update": "-"}, "Ewido": {"detected": false, "version": "-", "result": null, "update": "-"}, "AVG": {"detected": false, "version": "-", "result": null, "update": "-"}, "AhnLab-V3": {"detected": false, "version": "-", "result": null, "update": "-"}, "VBA32": {"detected": false, "version": "-", "result": null, "update": "-"}, "Sunbelt": {"detected": false, "version": "-", "result": null, "update": "-"}, "Rising": {"detected": false, "version": "-", "result": null, "update": "-"}, "Ikarus": {"detected": false, "version": "-", "result": null, "update": "-"}, "Fortinet": {"detected": false, "version": "-", "result": null, "update": "-"}, "NOD32v2": {"detected": false, "version": "-", "result": null, "update": "-"}, "Panda": {"detected": false, "version": "-", "result": null, "update": "-"}, "Webwasher-Gateway": {"detected": true, "version": "-", "result": "Trojan.Dropper.Gen", "update": "-"}}, "scan_id": "2e45ba557712895c19c66159678f01283d64206823883068d579e55385d1f1c1-1209483679", "sha1": "0b5fd4cf8b019c660a3868d1c5f523c648348fec", "resource": "73f87db9a810e2725ff01fe2ad9759d4", "response_code": 1, "scan_date": "2008-04-29 15:41:19", "permalink": "https://www.virustotal.com/file/2e45ba557712895c19c66159678f01283d64206823883068d579e55385d1f1c1/analysis/1209483679/", "verbose_msg": "Scan finished, scan information embedded in this object", "total": 36, "positives": 5, "sha256": "2e45ba557712895c19c66159678f01283d64206823883068d579e55385d1f1c1", "md5": "73f87db9a810e2725ff01fe2ad9759d4"}
Teniendo en cuenta esto,
{"eSafe": {"detected": false, "version": "-", "result": null, "update": "-"}
Necesito sacar lo que está en negrita de toda la variable.
Intenté esto:
Using perl Syntax Highlighting
- if($code=~/{"(.*)": {"detected": (.*), "version": (.*), "result": (.*), "update": (.*)}/) {
- print $1;
- }
Coloreado en 0.002 segundos, usando GeSHi 1.0.8.4
En el código que mostré solo saco la primera línea pero en realidad estoy buscando sacar todas.
¿ Es posible hacer esto en una expresión regular en Perl ?