Need regex expert
- or -
Post a project like this$100
- Posted:
- Proposals: 11
- Remote
- #2025359
- Expired
Expert in php yii cakephp codeigniter laravel html5 scraping website node.js, reactjs python aws cloud machine learning data Analyst css3 javascript perl Api mysql json angular moodle wordpress
Little Elm
Web Developer - TypeScript / JavaScript | Node.JS | React | Docker | Go | Scala | C# | MySQL
Norwich
20+ Years of experience | Your Trusted Tech Partner for Critical Websites & Web Apps
Sofia
Top Rated Web & Mobile dev Expert on PPH - WordPress | PHP-Mysql | Codeigniter | Laravel | Flutter | Angular & React JS
Surat
66482586919046061033789120427712668191723949174497518756612236422546927
Description
Experience Level: Expert
I need regex expert to help me format some html/css code that's stored inside a string variable. Language to do this in is php, but I just need working regex and you can use any of regex websites to format the below code, as long as I can use the regex you produce inside my php code its going to get approved.
css code could look like this
.text-4 {
font-size: ;
margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
}
.text-4:hover {
}
.text-4:active {
}
.headline-5 {
margin: 0px 0px 15px 0px; padding: 0px;
font-family: "";
}
.headline-5:hover {
}
.headline-5:active {
}
after regex operations we have to endup with clean and beautified css like this
.text-4 {
margin: 0px 0px 15px 0px;
padding: 0px;
width: 100%;
}
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
}
empty classes must be removed, so regex will remove stuff like this:
.headline-5:hover {
}
.headline-5:active {
}
if its empty between { }
it will remove stuff like:
font-family: ""; based on a rule that checks if there is a
: "";
then that css variable is removed
same for next one
font-size: ;
if it finds css-var: ; it should remove it.
Who is absolute expert at php regex? I need you to help me beautify and clean up some css code produced on the fly by the php app I am working with.
Cleaning and beatufiying can be done in stages, for example
.headline-5 {
margin: 0px 0px 15px 0px; padding: 0px;
font-family: "";
}
1 stage would get us this
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
font-family: "";
}
Start your message to me with regex expert or else you will get ignored since you did not read anything...
then in stage 2 we clean it up and remove the line where it has : ""; which basically means its invalid css, so lets remove it...
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
}
Whoever is good at regex, this should be 30 minute job and pay is 100$ with possible future collaborations as well since I would like to have regex expert on hand when I need him.
css code could look like this
.text-4 {
font-size: ;
margin: 0px 0px 15px 0px; padding: 0px; width: 100%;
}
.text-4:hover {
}
.text-4:active {
}
.headline-5 {
margin: 0px 0px 15px 0px; padding: 0px;
font-family: "";
}
.headline-5:hover {
}
.headline-5:active {
}
after regex operations we have to endup with clean and beautified css like this
.text-4 {
margin: 0px 0px 15px 0px;
padding: 0px;
width: 100%;
}
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
}
empty classes must be removed, so regex will remove stuff like this:
.headline-5:hover {
}
.headline-5:active {
}
if its empty between { }
it will remove stuff like:
font-family: ""; based on a rule that checks if there is a
: "";
then that css variable is removed
same for next one
font-size: ;
if it finds css-var: ; it should remove it.
Who is absolute expert at php regex? I need you to help me beautify and clean up some css code produced on the fly by the php app I am working with.
Cleaning and beatufiying can be done in stages, for example
.headline-5 {
margin: 0px 0px 15px 0px; padding: 0px;
font-family: "";
}
1 stage would get us this
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
font-family: "";
}
Start your message to me with regex expert or else you will get ignored since you did not read anything...
then in stage 2 we clean it up and remove the line where it has : ""; which basically means its invalid css, so lets remove it...
.headline-5 {
margin: 0px 0px 15px 0px;
padding: 0px;
}
Whoever is good at regex, this should be 30 minute job and pay is 100$ with possible future collaborations as well since I would like to have regex expert on hand when I need him.
Nermin B.
0% (0)Projects Completed
1
Freelancers worked with
1
Projects awarded
50%
Last project
20 Jun 2017
Sweden
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies