Auto fill custom field in custom post type with wordpress post description

How to auto fill the custom field with WordPress published post description, immediately after publishing using regex
I know it is quite possible to match with regex and autofill the custom field in CPT , can someone help with this?

say for example –description is
“It is one of the nice place to dine in City Delhi, where you get meal for as low price 5 USD”

using regex to match City and pick Delhi, and 5 before USD to fill two custom field, City and Low_Price

Read more here: Auto fill custom field in custom post type with wordpress post description

Leave a Reply

Your email address will not be published. Required fields are marked *