S
S
Stanislav2016-02-10 21:25:56
Regular Expressions
Stanislav, 2016-02-10 21:25:56

How to use regular expressions to replace characters in the found substring?

There is a text example

"dsdf"sdfsdf 
sdfsdfsd <script ssd="df">alert("1");</script>
sdfs " sdfsdf"a sdf"

You need to use a regular expression to find the text between <script и </script>and replace certain characters in it. Is it real?
The solution is needed in ColdFusion, but at least I understand whether it is possible to do this with regular expressions in general.
Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question