You are here: PSPad forum > English discussion forum > Searching for paragraph marks

Searching for paragraph marks

#1 Searching for paragraph marks

Posted by: chgeiselmann | Date: 2013-01-13 22:50 | IP: IP Logged

Daer all,

I am pretty used to using regular expressions in PS Pad, but now I have a problem concerning ordinary search-replace (without regex):

How can I search-replace the paragraph mark?
In MS Word search-replace this would be done by entering "^p! in the search field.

I could not find out how this is done in PS Pad.

Would you give a hint?

Thank you,
Kind regards,

Christian

Options: Reply | Quote | Up ^


#2 Re: Searching for paragraph marks

Posted by: tmpad | Date: 2013-01-14 10:28 | IP: IP Logged

MS Word or word processors in general distinguish between paragraphs (hard return) and lines (soft return). Pure text editors don't do this.

As far as I understand your question, you're asking how to find/replace the newline character \n.

Options: Reply | Quote | Up ^


#3 Re: Searching for paragraph marks

Posted by: chgeiselmann | Date: 2013-06-21 15:36 | IP: IP Logged

Yes, indeed, this is what I am looking for in PSPad. Can you give a hint?
I tried searching for "\n" with regular expression tickmarked in the search dialogue, but line breaks are not found.

Similarly I would like to know how to highlight (!) all existing newline characters in a given text. So to see, visually, where is one. Is this possible? I see that I can highlight "special characters", and with this at the end of my paragraphs there appears the ordinary "paragraph mark" (similarly as in word processors such as MS Word), but I cannot copy paste them into the search form... I tried also with "\r" for "carriage return", but to no success...

Thank you for answering,
kind regards,

Christian

Edited 3 time(s). Last edit at 2013-06-21 15:45 by chgeiselmann.

Options: Reply | Quote | Up ^


#4 Re: Searching for paragraph marks

Posted by: pspad | Date: 2013-06-21 16:18 | IP: IP Logged

You can use PSpad extension for it.
Rewrite whole search engine is priority for me, but it is time consuming operation.

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR