從頁面視圖狀態得到表達我有一個這樣的字符串:定期對使用python re模塊
| 0 | hiddenField | _ EVENTTARGET || 0 |隱藏| _EVENTARGUMENT || 0 | hiddenField | _ LASTFOCUS || 3848 | hiddenField | _VIEWSTATE | S + waYnNoWvsZV2X3xG1WKKtdIXQAqyoTV2oVgE/oyaJDgtLOoHSohEYPdTK7NsrM64VCXtyQQ23FOfUzWFNso8FQlu2JSomP7JGAoxpg2RzFfOWjOMaDDo/iKpjDiAjVMUYHdPvKSzTXpsPmqg49y4yEMfViFOowPSoTrojZAIWfAH0DvqvBHOFDozoDfk283k + O5JEXiyJKHXQ6p0IjFZOjr + tIckyRPPH8vJkCo7xntoQ + ZV8KlzrBfJnRthm1XOkkxX73DTW0mByIbATIAdVUwNWQ4lrapOaaxh5y7AjoxlcpyyG2rkezkKquaZyf0kZg5 + Yd9HnUmXUY5VsEj2NYIyuppVoYuFQPeoRXbC/SQV6m9Gf ++ VYhm + sVo8sx8Dvoitelm3R617/zEi71VIrJlk51BH6DnWwaWoHH6gygSHslVwP + iFTao + LR5fekfjAf + BeTgBshc8BVGwslQxJ + YBmyttQxSddb8WyqEGHX2Wc6XqXCKSA8XEgad/42lPRknrLtCLM1b3sn7xWQxUUnb2pEDRc96C + tNUPAy3CZPS2Uq/aCsJqQTp9EssnMhKvfUJTplEbxd9xX2KfeTRa51cDZGzQbBk3L8steG83ehGm1hsU42hdx/3GICA1eKsDmFKpA0D2/NWpnG4rYWJK + MhzbnveqbX0Cak6VyEOLcmaD0dhYz9kOhOhc7h3ntWcbE40qbKhhKTE8Yq9voAqRGFT2AuGTThtbGfQ2GYoua8Oz8pPSgkGYsOcU6dI0vtoEdeH9rUC3a2vLLigVXeQ2bCbAFIkzrpHSfHsp9TLE1AoX3E57 // 23ZcwzDTJiPYottJGwxn3cnenh8xOdcoQM + 7qkDiaD7CVUrvN9p8dmtQjtYHNbt7D8m/SZjvA/SmmAfIKMA == | 0 | hiddenField |
我需要從這個字符串,它是得到__VIEWSTATE值:
S + waYnNoWvsZV2X3xG1WKKtdIXQAqyoTV2oVgE/oyaJDgtLOoHSohEYPdTK7NsrM64VCXtyQQ23FOfUzWFNso8FQlu2JSomP7JGAoxpg2RzFfOWjOMaDDo/iKpjDiAjVMUYHdPvKSzTXpsPmqg49y4yEMfViFOowPSoTrojZAIWfAH0DvqvBHOFDozoDfk283k + O5JEXiyJKHXQ6p0IjFZOjr + tIckyRPPH8vJkCo7xntoQ + ZV8KlzrBfJnRthm1XOkkxX73DTW0mByIbATIAdVUwNWQ4lrapOaaxh5y7AjoxlcpyyG2rkezkKquaZyf0kZg5 + Yd9HnUmXUY5VsEj2NYIyuppVoYuFQPeoRXbC/SQV6m9Gf ++ VYhm + sVo8sx8Dvoitelm3R617/zEi71VIrJlk51BH6DnWwaWoHH6gygSHslVwP + iFTao + LR5fekfjAf + BeTgBshc8BVGwslQxJ + YBmyttQxSddb8WyqEGHX2Wc6XqXCKSA8XEgad/42lPRknrLtCLM1b3sn7xWQxUUnb2pEDRc96C + tNUPAy3CZPS2Uq/aCsJqQTp9E ssnMhKvfUJTplEbxd9xX2KfeTRa51cDZGzQbBk3L8steG83ehGm1hsU42hdx/3GICA1eKsDmFKpA0D2/NWpnG4rYWJK + MhzbnveqbX0Cak6VyEOLcmaD0dhYz9kOhOhc7h3ntWcbE40qbKhhKTE8Yq9voAqRGFT2AuGTThtbGfQ2GYoua8Oz8pPSgkGYsOcU6dI0vtoEdeH9rUC3a2vLLigVXeQ2bCbAFIkzrpHSfHsp9TLE1AoX3E57 // 23ZcwzDTJiPYottJGwxn3cnenh8xOdcoQM + 7qkDiaD7CVUrvN9p8dmtQjtYHNbt7D8m/SZjvA/SmmAfIKMA ==
我已經試過幾個重新使用模塊模式,但他們沒有任何人works.Could幫助我在這?
所以你有一個由'|'分隔的模式。用'|'分割你的字符串,然後訪問預期的字段 –
實際上我發佈的字符串比這個要大得多。它的頂部和底部還有Html內容:( – user1170793
'|'是一個非常難得的字符。 – nhahtdh