copy and past to search and replace
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
copy and past to search and replace
Hello,
In the old TP I used to be able to copy and paste things like:
/n/n/n/n/n
and replace with
</p>\n \n <p>
Now in TP 7 the copy and paste needs to be edited, that is, it is useless. Is this going to be changed or is it just something I need to forget about?
In the old TP I used to be able to copy and paste things like:
/n/n/n/n/n
and replace with
</p>\n \n <p>
Now in TP 7 the copy and paste needs to be edited, that is, it is useless. Is this going to be changed or is it just something I need to forget about?
Thank you, and
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
Howdy Keith,
This happens while I am converting .txt files to .htm
In this case the text file has broken the paragraphs up with large numbers of lines between paragraphs and I want to save myself the work of replacing them individually with an end paragraph, empty line, new paragraph.
I used to be able to just copy from the end of one paragraph to the beginning of the next as the 'search for' and replace it with a copy and paste of an instance where I had it set up the way I wanted.
I hope that is clear?
There are other cases which are similar, that is involving line endings.
The 'regular expression' I am using is as above. That is a copy of what I used to be able to copy and paste into the search and replace dialog, select, 'regular expression' and replace.
This happens while I am converting .txt files to .htm
In this case the text file has broken the paragraphs up with large numbers of lines between paragraphs and I want to save myself the work of replacing them individually with an end paragraph, empty line, new paragraph.
I used to be able to just copy from the end of one paragraph to the beginning of the next as the 'search for' and replace it with a copy and paste of an instance where I had it set up the way I wanted.
I hope that is clear?
There are other cases which are similar, that is involving line endings.
The 'regular expression' I am using is as above. That is a copy of what I used to be able to copy and paste into the search and replace dialog, select, 'regular expression' and replace.
Thank you, and
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
Hi Mike,
In Perl regular expressions, "\n" only matches newline characters, so fails if the line ending includes carriage return. This has broken a lot of things, so we are changing "\n" to match all line endings. However, a good thing about Perl REs is that you can now record a macro to search for "\R{2,}" and replace it with "</p>\n\n<p>".
Hope this helps,
Keith
In Perl regular expressions, "\n" only matches newline characters, so fails if the line ending includes carriage return. This has broken a lot of things, so we are changing "\n" to match all line endings. However, a good thing about Perl REs is that you can now record a macro to search for "\R{2,}" and replace it with "</p>\n\n<p>".
Hope this helps,
Keith
Thanks Keith
What's with all the new updates? You guys are going to spoil your rep!
What's with all the new updates? You guys are going to spoil your rep!
Thank you, and
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm
Best Wishes,
Obo
http://buddhadust.net/
check out the What's New? Oblog:
http://buddhadust.net/dhammatalk/dhamma ... ts.new.htm