L
L
lagudal2019-10-16 10:50:43
Regular Expressions
lagudal, 2019-10-16 10:50:43

What is the correct way to replace rgba in rgb with regex?

Greetings, there is a need to replace a lot of occurrences of the type rgba(168, 210, 100, 1) in a text document with rgb(168, 210, 100) . The values ​​are always different, the opacity is not necessarily 1 - in short, you need to cut off the letter a and the last semicolon before it.
I think it should be easy with notepad++, but I rarely come across regular expressions, so it's even stuck ...

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nick Sdk, 2019-10-16
@lagudal

https://regex101.com/r/rck9Ym/2
5da6d049d2871491150626.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question