Javascript/jQuery Regex

Concluído Postado há 4 anos Pago na entrega
Concluído Pago na entrega

I need a javascript regex expression to find and replace the "fill" value in the style attribute based on a certain id. Here is an example:

It must find the element path of id "1" and change the fill value of the style from #fff to #ff0000. It must just change the fill and not remove the other style values.

<path id="1" d="M60.82,226h83.36a.33.33,0,0,1,.33.33v44.79a.33.33,0,0,1-.33.33H60.82Z" transform="translate(-60.12 -225.26)" style="fill:#fff;stroke:#000003;stroke-miterlimit:2.6131;stroke-width:1.4173px;fill-rule:evenodd"/><line x1="7.43" y1="46.16" x2="7.43" y2="0.71" style="fill:none;stroke:#000003;stroke-miterlimit:2.6131;stroke-width:1.4173px"/><polygon points="98.6 10.62 84.39 0.71 84.39 46.16 98.6 36.72 98.6 10.62" style="fill:#fff;stroke:#000003;stroke-linejoin:round;stroke-width:1.4173px;fill-rule:evenodd"/>

JavaScript jQuery Expressões Regulares

ID do Projeto: #22372915

Sobre o projeto

4 propostas Projeto remoto Ativo em há 4 anos

Concedido a:

dreammate0621

Hi there! I think it is just my project :) I am a professional freelancer. I'm sure of completing your project with a high quality. It's important to me to build long-term relationships with clients. Would love to hel Mais

$20 USD em 7 dias
(13 Comentários)
5.0

4 freelancers estão ofertando em média $15 nesse trabalho

akiramatsui0305

⭐ Dear Client. ⭐ Nice to meet you I really would like to work for you. I'm a full stack professional developer. I have rich development experience in Node.js,Angular.js,React.js, Express, Laravel, Vue.JS, MEAN s Mais

$20 USD em 1 dia
(1 Comentário)
2.4
huuhiep

If I understand correctly that you want. This is an easy coding. Just take a few minutes to do it. Contact me and I will give it to you.

$10 USD em 1 dia
(0 Comentários)
0.0