I tested it on IDLE. It works.

regards,
Sarma.


On Thu, Aug 14, 2014 at 7:37 PM, Chris “Kwpolska” Warrick <
kwpol...@gmail.com> wrote:

>
> On 14 Aug 2014 15:58 "Sunil Tech" <sunil.tech...@gmail.com> wrote:
> >
> > Hi,
> >
> > I have string like
> > stmt = '<p><span style="font-size: 11pt;"><span style="font-family:
> times new roman,times;">Patient name:&nbsp;Upadhyay Shyam</span><span
> style="font-family: times new roman,times;">&nbsp;&nbsp;<br />Date of
> birth:&nbsp;&nbsp;&nbsp;08/08/1988 <br />Issue(s) to be
> analyzed:&nbsp;&nbsp;testttttttttttttttttttt</span></span><br /><span
> style="font-size: 11pt;"><span style="font-family: times new
> roman,times;">Nurse Clinical summary:&nbsp;&nbsp;test1</span><span
> style="font-family: times new roman,times;">&nbsp;<br /><br />Date of
> injury:&nbsp;&nbsp;&nbsp;12/14/2013</span><br /><span style="font-family:
> times new roman,times;">Diagnoses:&nbsp;&nbsp;&nbsp;723.4 - 300.02 - 298.3
> - 780.50 - 724.4&nbsp;Brachial neuritis or radiculitis nos - Generalized
> anxiety disorder - Acute paranoid reaction - Unspecified sleep disturbance
> - Thoracic or lumbosacral neuritis or radiculitis, unspecified</span><br
> /><span style="font-family: times new roman,times;">Requester
> name:&nbsp;&nbsp;&nbsp;Demo Spltycdtestt</span><br /><span
> style="font-family: times new roman,times;">Phone #:&nbsp;&nbsp;&nbsp;(213)
> 480-9000</span><br /><br /><span style="font-family: times new
> roman,times;">Medical records reviewed <br />__ pages of medical and
> administrative records were reviewed including:<br /><br /><br />Criteria
> used in analysis <br />&nbsp;<br /><br />Reviewer comments <br /><br /><br
> />Determination<br />Based on the clinical information submitted for this
> review and using the evidence-based, peer-reviewed guidelines referenced
> above, this request is&nbsp;<br /><br />Peer Reviewer
> Name/Credentials&nbsp;&nbsp;</span><br /><span style="font-family: times
> new roman,times;">Solis, Test,&nbsp;PhD</span><br /><span
> style="font-family: times new roman,times;">Internal Medicine</span><br
> /><span style="font-family: times new roman,times;">&nbsp;</span><br /><br
> /><span style="font-family: times new roman,times;">Attestation<br /><br
> /><br />Contact Information</span><span style="font-family: times new
> roman,times;">&nbsp;<br /></span></span></p><br/><font face=\'times new
> roman,times\' size=\'3\'>Peer to Peer contact attempt 1: 08/13/2014 02:46
> PM, Central, Incoming Call, Successful, No Contact Made, Peer Contact Did
> Not Change Determination</font>'
> >
> >
> > i am trying to find the various font sizes and font face from this
> string.
> >
> > i tried
> >
> > print re.search("<span style=\"(.*)\"", stmt).group()
> >
> >
> > Thank you.
> >
> >
> >
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor@python.org
> > To unsubscribe or change subscription options:
> > https://mail.python.org/mailman/listinfo/tutor
> >
> Don't use regular expressions for HTML. Use lxml instead.
>
> Also, why would you need that exact thing? It's useless. Also, this code
> is very ugly, with too many <span>s and — worse — <font>s which should not
> be used at all.
>
> --
> Chris “Kwpolska” Warrick <http://chriswarrick.com/>
> Sent from my SGS3.
>
> _______________________________________________
> Tutor maillist  -  Tutor@python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
>
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to