Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### search.json ###
- """
- </td><td class="alignRight"><input id="j_id_23" name="j_id_23" onclick="jsf.util.chain(this,event,"window.open('\/SearchWeb\/faces\/search\/query\/query\u002Deditor.xhtml?queryKey=95588\u0026returnType=','editPage').focus();","RichFaces.ajax(\"j_id_23\",event,{\"incId\":\"1\"} )");return false;" value="Edit" title="Edit Query" type="submit" /><input id="j_id_24" name="j_id_24" onclick="jsf.util.chain(this,event,"window.close(); return false;","RichFaces.ajax(\"j_id_24\",event,{\"incId\":\"1\"} )");return false;" value="Close" type="submit" /></td></tr></tbody></table><span style="margin-left: 3px;" class="label">Number of results: </span><span class="text">10</span><input type="hidden" id="j_id_28" name="j_id_28" value="10" /><div id="j_id_29" class="rf-cp rf-tgp max"><input id="j_id_29-value" name="j_id_29-value" type="hidden" value="false" /><div id="j_id_29:header" class="rf-cp-hdr rf-cp-hdr-colps"><table class="rf-cp-gr"><tbody><tr><td class="rf-cp-ico"><div class="rf-cp-ico-colps rf-ico-chevron-up rf-ico-t-hdr"></div><div class="rf-cp-ico-exp rf-ico-chevron-down rf-ico-t-hdr"></div></td><td class="rf-cp-lbl"><div class="rf-cp-lbl-exp">Visualized Query Filter</div><div class="rf-cp-lbl-colps">Visualized Query Filter</div></td></tr></tbody></table></div><div id="j_id_29:content" class="rf-cp-b" style="display:none"><b>(</b><br/> Answer.Answer code Starts With [A]<br/> <b>OR</b><br/> Answer.Answer code Starts With [B]<br/><b>)</b><br/><b>AND</b><br/>Additional info.DIDDET code Is In [T, S]<br/><b>AND</b><br/>Answer.SHODET code Is In [YR]<br/><b>AND</b><br/>PDU.Tag 6 code Contains [Sysop]<br/><b>AND</b><br/>TR History Register.Register date Is Between [2018-07-01, 2018-09-30]<br/></div><div id="j_id_29:empty" class="rf-cp-empty" style="display:block"></div></div>
- """
- import re
- with open("search.json") as file:
- for line in file:
- query = re.search('(?<=Number of results: </span><span class="text">)(\d+)', line)
- if query:
- print((query.group()))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement