Regex to find any lines that do NOT have a specific number of a character
-
@Mark-Yorkovich said:
…finding all of the new line/line feed characters - only in those now-bookmarked lines - and replace them with some other character (spaces, dummy chars, whatever) to get each of those records to be on one line
Didn’t we do all this the other day?
-
(.|){9}.
how about this?
-
I assume you meant
(.\|){9}.
This matches 9 and more pipe delimited lines. -
This post is deleted! -
@Ekopalypse said:
I assume you meant
(.\|){9}.
This matches 9 and more pipe delimited lines.in fact, I mean…
(。\|){9}。*
but it can’t show correctly, and I don’t know how to put screenshot
-
@Allen-Bai said:
it can’t show correctly,
To quote my boilerplate:
This forum is formatted using Markdown, with a help link buried on the little grey
?in the COMPOSE window/pane when writing your post. For more about how to use Markdown in this forum, please see @Scott-Sumner’s post in the “how to markdown code on this forum” topic, and my updates near the end. It is very important that you use these formatting tips – using single backtick marks around small snippets, and using code-quoting for pasting multiple lines from your example data files – because otherwise, the forum will change normal quotes ("") to curly “smart” quotes (“”), will change hyphens to dashes, will sometimes hide asterisks (or if your text isc:\folder\*.txt, it will show up asc:\folder*.txt, missing the backslash).For images: upload image to imgur. embed images with the syntax
. (please use imgur’s “direct link” with i.imgur.com as the hostname and the appropriate .png or .gif extension, rather than the “image” link, which really links to the HTML-wrapper, and will not embed in the forum) -
-
@Allen-Bai said:
in fact, I mean
(。*\|){9}。*Then why not put it in tick marks? Both the help I linked to and the “how to use markdown code” post explained how to do that, as did my boilerplate text itself.
`(.*\|){9}.*`
renders as
(.*\|){9}.*
-
ah…
understand now, thank you so much
-
Hi, @mark-yorkovich, and All,
See my very late regex solution , below :
https://community.notepad-plus-plus.org/post/47905
Best Regards,
guy038
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