Script that changes text in wordpress files

Employer
no avatar
Simplo
Description

I need a script that searches for a regular expression with a number, performs an action on it and changes the unit. The idea is to convert kW to hp.

We have in the files (for example):

145 kW

And what is needed is: (145*1.36) "kW"="hp"

All files (.html and .php) are placed in one directory.

Published
on 2022-07-25
Preferable solution
Skrypt .php lub inny, który zadziała na serwerze.
Required features
Skrypt znajdujący wyrażenie regularne z liczbą i jednostką. Przeliczenie i zamiana liczby wg wzoru 1kW=1,36KM i jednostki kW na KM
Required functions:
Script finding regular expression with number and unit. Converting and converting the number according to the formula 1kW=1.36KM and the unit kW to KM A .php or other script that will work on the server.

Offers sent (16)

Budget
Negotiable
Copyright
-
Expires in
30 days