Regex: Replace after I between tags
-
I have this title, translated in Belarusian.
<title>Divano | Я хачу паставіць</title>
<title>America | ў пачатку радка</title>
<title>America | сёння яны едуць у амерыку</title>I want to become:
<title>Divano | My name (en)</title>
<title>America | My name (en)</title>
<title>America | My name (en)</title>This is the solution, maybe someone need it:
Search:
<title>.*\|\K(.*)(</title>)
Replace by:\x20My name (en)\x20\2 -
Probably we don’t need postings of random regex replacement solutions.
-
Plus, it doesn’t work like you say anyway. :-(
If you use literal
(or)in your replace expression, you must escape them as\(,\)or they do not appear!
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login