find and replace
-
Hello. I have text like this.
3h3s2h2s
3d3h2h2s
3c3h2h2s
And i need replace every 3h 3s … to that <img src=“3h.png”><img src=“3s.png”> …
thank you in advance. -
welcome to the notepad++ community, @Ivan-Kuzmich
if you have a text like:
3h3s2h2s 3d3h2h2s 3c3h2h2sopen up the notepad++ menu
search > replaceand enter the following:search what:
([0-9][a-z])
replace with:<img src="$1.png">
search mode:regular expressionthen either hit
replaceto replace every occurrence one by one,
or hitreplace allto parse-replace the complete file.note: if you have similar conflicting content in your file, select only the part you want to parse-replace and activate
in selectionbefore you hitreplace all.the result will then be:
<img src="3h.png"><img src="3s.png"><img src="2h.png"><img src="2s.png"> <img src="3d.png"><img src="3h.png"><img src="2h.png"><img src="2s.png"> <img src="3c.png"><img src="3h.png"><img src="2h.png"><img src="2s.png">if your result differs, we would need a real life example of a part of your file.
best regards.
-
Awesome. thank you!
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