I’m trying to match anything between and including style=""
eg: style="whatever:0; morestuff:1; otherstuff:3"
I’m trying to match anything between and including style= eg: style=whatever:0; morestuff:1; otherstuff:3
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The pattern will be
/style="([^"]*)"/, but may vary a bit depending on what language you’re using.Also if you’re trying to do this through javascript, jquery would make this as easy as
If you’re trying to do this from another language, use an HTML parsing lib as HTML isn’t regular. BeautifulSoup for Python is quite nice.