Replace a certain character with ENTER
-
Hi, I have to change the following
text text ******* text text
text text ******* text textTo
text text
text text
text text
text textWhich means, replacing (*******) with an enter
Kindly suggest a solution
Thanks
-
search -> replace
check “search mode: extended”
replace with: “\n” (without the quotes)
-
Since @patrickdrd 's solution was a tad unclear, I’d suggest:
Find:
\s*\*+\s*
Replace:\r\nfor Windows-formatted file OR\nfor Linux-formatted file
Search mode: Regular ExpressionOf course, maybe the OP’s usage of
*was just an example. This is unfortunate as*is a special character and needs “escaping” with\when used in a reg exp, which just makes the whole thing appear more cryptic/complicated. :)
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