regex - Regular Expression to Modify Title on Autoblogged Plugin -


i need rid of words every feed title. example: titles:

vans model 10 . 390 random data nike model 982 . errant default data timberland old school whatever 

now, need remove after "from"

the result should be:

vans model 10 . 390 nike model 982 . errant timberland old school 

i cannot use search/replace fields because same data present in %content%, solutions custom fields title regex dont know how.

if cannot use search/replace, can use regex lookahead capture content want this:

(.+?)(?=\sfrom) 

working demo

however, in case use search/replace use regex:

from.* 

working demo


Comments

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -