Need regulare expression written

Discussion in 'JavaScript' started by ruby, Jun 16, 2008.

  1. #1
    I have this string:

    .class_99 { width:325px; height:40px; background-color: none; padding: 3px; } .class_100 { padding-bottom: 1px; padding-top: 4px; padding-left: 3px; padding-right: 3px; vertical-align:top; text-align:left; } 
    Code (markup):
    I need 2 regular expressions written to extract the values of width and height in the class_99 class.

    So the values in this case would be 325px and 40px.

    Can someone write that?
     
    ruby, Jun 16, 2008 IP
  2. ajsa52

    ajsa52 Well-Known Member

    Messages:
    3,426
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    160
    #2
    ajsa52, Jun 17, 2008 IP