skip to Main Content

with php how can i replace html tag names inside text

I want to change tag name inside some text for example; <div class="col-sm-12 col-md-6 col-lg-4 float-left"> <div class="service-one__single"> <span class="service-one__dot-1">BLA BLA 1</span> <span class="service-one__dot-2">BLA BLA 2</span> <span class="service-one__dot-3">BLA BLA 3</span> </div> </div> I want to replace <span> tags with <p>…

VIEW QUESTION

Nginx – How to match optional group in regular expression

I want a regular expression for using in fluentd for parsing nginx error logs. The sample row is: 2024/04/15 09:06:29 [error] 3443790#3443790: *176070165 limiting requests, excess: 2.957 by zone "RequestLimitForCommonApi", client: 77.81.151.129, server: test.com, request: "POST /capi/session/forgot HTTP/1.1", host: "test.com",…

VIEW QUESTION
Back To Top
Search