<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8544609315733972726.post2625091374605603432..comments</id><updated>2010-04-13T09:30:57.690-06:00</updated><title type='text'>Comments on OpenOffice.org Ninja: Example regular expressions for Writer</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.oooninja.com/feeds/2625091374605603432/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html'/><author><name>Andrew Z</name><uri>http://www.blogger.com/profile/10108637160465346326</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>24</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-5959268400116001246</id><published>2010-04-13T09:30:57.681-06:00</published><updated>2010-04-13T09:30:57.681-06:00</updated><title type='text'>thanks for this kind of information, usefull reall...</title><content type='html'>thanks for this kind of information, usefull really.&lt;br /&gt;&lt;br /&gt;I want to comment something that I found in Calc and in the use of Regular Expressions inside OO.&lt;br /&gt;&lt;br /&gt;I am using OO in spanish and in the formulas and Regular Expressions,  many of the boolean parameters (and, or, etc) don´t work if I put this in spanish (y, o) in Calc, the same occur whit things like [:digit:] that in spanish [:digito:] dont work, OO just accept this parameters in English, in the help of OO this parameters are in Spanish but don´t work.&lt;br /&gt;&lt;br /&gt;A internationalization  problem I think.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5959268400116001246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5959268400116001246'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1271172657681#c5959268400116001246' title=''/><author><name>Eliodoro</name><uri>http://www.blogger.com/profile/13249539875944189275</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-4228285747785168220</id><published>2010-03-17T09:45:57.246-06:00</published><updated>2010-03-17T09:45:57.246-06:00</updated><title type='text'>To "Flyer," above:

You've already found the solut...</title><content type='html'>To &amp;quot;Flyer,&amp;quot; above:&lt;br /&gt;&lt;br /&gt;You&amp;#39;ve already found the solution to your problem -- you&amp;#39;ve said &amp;quot;it works&amp;quot; when you substitute with the &amp;#39;$&amp;#39; as the end-of-line mark in your regex.  I&amp;#39;m not sure I understand what you mean when you say you&amp;#39;ll have problems with the &amp;#39;paragraph limit&amp;#39;.&lt;br /&gt;&lt;br /&gt;I&amp;#39;m not aware of a &amp;#39;paragraph limit&amp;#39;.&lt;br /&gt;&lt;br /&gt;Have you thought about breaking a Very Large Document into several smaller sub-documents, each called by a Master Document (an &amp;#39;.ODM&amp;#39; file)?  Document management -- especially on large documents -- is *so* very much easier when they&amp;#39;re used that way.&lt;br /&gt;&lt;br /&gt;Try it (the &amp;#39;Master Document&amp;#39; method); you just might find it&amp;#39;s a feature you&amp;#39;ve been missing and never knew you needed.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4228285747785168220'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4228285747785168220'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1268840757246#c4228285747785168220' title=''/><author><name>Jim</name><uri>http://www.blogger.com/profile/08804691499081321229</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-5913305810677550699</id><published>2010-03-17T03:16:24.474-06:00</published><updated>2010-03-17T03:16:24.474-06:00</updated><title type='text'>Hello

I want to find all lines in a document whic...</title><content type='html'>Hello&lt;br /&gt;&lt;br /&gt;I want to find all lines in a document which are enclosed between two special tags&lt;br /&gt;&lt;br /&gt;like between &amp;quot;BLABLA&amp;quot;&lt;br /&gt;&lt;br /&gt;BLABLA&lt;br /&gt;sth sth sth&lt;br /&gt;&lt;br /&gt;sth sth sth&lt;br /&gt;BLABLA&lt;br /&gt;&lt;br /&gt;I tried it with your above mentionend solution of using &amp;quot;^&amp;quot; but I can not get it working my attempts have been to use&lt;br /&gt;&lt;br /&gt;&amp;quot;BLABLA$(^.*$)+^BLABLA&amp;quot;&lt;br /&gt;&amp;quot;BLABLA$(^.*)+^BLABLA&amp;quot;&lt;br /&gt;&amp;quot;BLABLA.*^.*^BLABLA&amp;quot;&lt;br /&gt;...&lt;br /&gt;&lt;br /&gt;Do u have any idea how to solve this? It works when I change all $ to \n but since it is quite a big document I will get trouble with the paragraph limit I think&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;Florian</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5913305810677550699'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5913305810677550699'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1268817384474#c5913305810677550699' title=''/><author><name>flyer</name><uri>http://www.blogger.com/profile/12345163543439290748</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-6018978999135496973</id><published>2009-10-20T05:14:33.953-06:00</published><updated>2009-10-20T05:14:33.953-06:00</updated><title type='text'>Does anybody know how can I make a find and replac...</title><content type='html'>Does anybody know how can I make a find and replace and change the format of part of the replace?&lt;br /&gt;For example, substitute VIN by VIN, where IN is in subscript.&lt;br /&gt;&lt;br /&gt;Is it possible to do ?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/6018978999135496973'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/6018978999135496973'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1256037273953#c6018978999135496973' title=''/><author><name>NunoB</name><uri>http://www.blogger.com/profile/09461006432748398369</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-4575274902168080619</id><published>2009-08-11T03:32:03.740-06:00</published><updated>2009-08-11T03:32:03.740-06:00</updated><title type='text'>Does OpenOffice support LookAhead &amp; LookBehind ass...</title><content type='html'>Does OpenOffice support LookAhead &amp;amp; LookBehind assertions in regexp</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4575274902168080619'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4575274902168080619'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1249983123740#c4575274902168080619' title=''/><author><name>Praneel</name><uri>http://www.blogger.com/profile/16515478194329179956</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-2609600562307100444</id><published>2009-07-14T21:51:59.459-06:00</published><updated>2009-07-14T21:51:59.459-06:00</updated><title type='text'>You are so correct.  OK, I understand the greater ...</title><content type='html'>You are so correct.  OK, I understand the greater complexity.  In the html files I&amp;#39;m working with, the \n is a br tag and the paragraph mark is an enclosing p.../p.  So as I migrate from Vista with MS Office I battle the formatting issue.  Word has no problems searching for and replacing paragraph marks.  OOW has no problems displaying the paragraph marks.  If it can display them, It&amp;#39;s frustrating that it can&amp;#39;t search and replace them.&lt;br /&gt;&lt;br /&gt;I wouldn&amp;#39;t need to replace paragraph marks if OOW could generate properly formatted paragraphs.  But what I create with OOW is not how it appears in a browser.  Didn&amp;#39;t have that problem with Word either.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/2609600562307100444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/2609600562307100444'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1247629919459#c2609600562307100444' title=''/><author><name>Ely</name><uri>http://www.blogger.com/profile/11116680437213944437</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-8751448047037616060</id><published>2009-07-14T21:03:14.324-06:00</published><updated>2009-07-14T21:03:14.324-06:00</updated><title type='text'>Ely: Unzip the .odt, look at the .xml, and you sho...</title><content type='html'>Ely: Unzip the .odt, look at the .xml, and you should see that paragraphs are not actually characters.  They are represented by markup similar to HTML</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/8751448047037616060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/8751448047037616060'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1247626994324#c8751448047037616060' title=''/><author><name>Andrew Z</name><uri>http://www.blogger.com/profile/10108637160465346326</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13505794154249845046'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-3612776632041376896</id><published>2009-07-14T18:29:03.569-06:00</published><updated>2009-07-14T18:29:03.569-06:00</updated><title type='text'>I am very disappointed with how OOw treats paragra...</title><content type='html'>I am very disappointed with how OOw treats paragraph marks.  I often have need to replace paragraph marks with manual line breaks.  The only way I could find to do this is either manually, or by using the Alternative Find &amp;amp; Replace. But the add-in is buggy and won&amp;#39;t do a replace all, so it&amp;#39;s almost like doing it manually.&lt;br /&gt;&lt;br /&gt;Is there a single point of contact somewhere in charge of search &amp;amp; replace who could possible be persuaded to consider that paragraph marks need to be handled like any other flow or non-flow character.  What is so difficult about this concept?  IT&amp;#39;S JUST A CHARACTER.  DEAL WITH IT!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3612776632041376896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3612776632041376896'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1247617743569#c3612776632041376896' title=''/><author><name>Ely</name><uri>http://www.blogger.com/profile/11116680437213944437</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-7540242787392229707</id><published>2009-06-08T21:45:11.846-06:00</published><updated>2009-06-08T21:45:11.846-06:00</updated><title type='text'>olegkirillov: Check out the Alternative dialog Fin...</title><content type='html'>olegkirillov: Check out the &lt;a href="http://extensions.services.openoffice.org/project/AltSearch" rel="nofollow"&gt;Alternative dialog Find &amp;amp; Replace for Writer&lt;/a&gt; which provides &lt;a href="http://www.volny.cz/macrojtb/extensions/AltSearchHelp_1.2ed_en.html" rel="nofollow"&gt;advanced find and replace features&lt;/a&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/7540242787392229707'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/7540242787392229707'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1244519111846#c7540242787392229707' title=''/><author><name>Andrew Z</name><uri>http://www.blogger.com/profile/10108637160465346326</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='13505794154249845046'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-4970089161989971527</id><published>2009-06-02T14:42:10.956-06:00</published><updated>2009-06-02T14:42:10.956-06:00</updated><title type='text'>The problem is that I cannot reformat Project Gute...</title><content type='html'>The problem is that I cannot reformat Project Gutenberg's txt. I need to replace double newlines with a single ones and single newlines with a spaces. In W4W I just place a special character (double Paragraph mark) in search box and PARAGRAPMARK special word in replacement box. After that I turn all other paragraph marks to spaces and then PARAGRAPHMARK to a paragraph mark. Fine. &lt;br /&gt;It's impossible in Writer and I do not have Word installed so I'm stuck...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4970089161989971527'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4970089161989971527'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1243975330956#c4970089161989971527' title=''/><author><name>olegkirillov</name><uri>http://olegkirillov.livejournal.com/</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-5568327807922862789</id><published>2009-04-11T23:23:00.000-06:00</published><updated>2009-04-11T23:23:00.000-06:00</updated><title type='text'>"Replacing dumb quotes with smart quotesTo replaci...</title><content type='html'>&amp;quot;Replacing dumb quotes with smart quotes&lt;BR/&gt;&lt;BR/&gt;To replacing all the straight quotation marks with curly quotation marks, follow these steps:&lt;BR/&gt;[...]&lt;BR/&gt;5. If you place periods inside the quotation mark, type [\.\?!]&amp;quot; in the Search for field.&amp;quot;&lt;BR/&gt;&lt;BR/&gt;Did you actually bother to test this?  Probably not, because it is worse than useless.  It also removes your punctuation, and it does not replace the dumb quotes which do not end sentences or follow a comma.&lt;BR/&gt;&lt;BR/&gt;Tip: go the other way around.  First replace all opening dumb quotes (&amp;quot;\&amp;lt;), since they are most likely to come right before a word.  Then replace all the remaining dumb quotes with a closing smart quote.  Repeat for single quotes.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5568327807922862789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/5568327807922862789'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1239513780000#c5568327807922862789' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-350090108065957412</id><published>2009-04-01T15:04:00.000-06:00</published><updated>2009-04-01T15:04:00.000-06:00</updated><title type='text'>Appending my own comment:De-hyphenation was very e...</title><content type='html'>Appending my own comment:&lt;BR/&gt;De-hyphenation was very easy with the alternative search-and-replace tool.&lt;BR/&gt;&lt;BR/&gt;Search for "-\p" (without " 's) &lt;BR/&gt;&lt;BR/&gt;Replace with nothing.&lt;BR/&gt;&lt;BR/&gt;Bob's your uncle.&lt;BR/&gt;\p means new paragraph, while $ has the normal regexp "end of line" meaning.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/350090108065957412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/350090108065957412'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1238619840000#c350090108065957412' title=''/><author><name>arnotixe</name><uri>http://www.blogger.com/profile/09713957433444190540</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-3928322693032214987</id><published>2009-03-27T17:10:00.000-06:00</published><updated>2009-03-27T17:10:00.000-06:00</updated><title type='text'>Hi I scanned a few books and used tesseract to rea...</title><content type='html'>Hi I scanned a few books and used tesseract to read them. The problem is that the words in the original book were hyphenated a lot, resulting in a hyphen and a lineshift, like this:&lt;BR/&gt;&lt;BR/&gt;'The Encyclapedia Arnericana libro-&lt;BR/&gt;pika kashnami nin: &lt;BR/&gt;&lt;BR/&gt;Now, I needed to remove all lineshifts preceeded by an hyphen (-$ in regexish). Couldn't find a way to do it directly in openoffice, so I&lt;BR/&gt;1) Searched for "-$" and replaced with "DASHHERE"&lt;BR/&gt;2) Searched for "$" and replaced with "NEWLINE"&lt;BR/&gt;3) Searched for "DASHHERENEWLINE" and replaced with "" (nothing)&lt;BR/&gt;4) Searched for "NEWLINE" and replaced with \n&lt;BR/&gt;&lt;BR/&gt;Of course, DASHHERE, NEWLINE and DASHHERENEWLINE must not occur in the original text.&lt;BR/&gt;Now I'll try out whether the alternative search and replace works better...</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3928322693032214987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3928322693032214987'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1238195400000#c3928322693032214987' title=''/><author><name>arnotixe</name><uri>http://www.blogger.com/profile/09713957433444190540</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-1756832842255704775</id><published>2009-01-17T14:12:00.000-07:00</published><updated>2009-01-17T14:12:00.000-07:00</updated><title type='text'>This is directed towards 's reply earlier, today.A...</title><content type='html'>This is directed towards 's reply earlier, today.&lt;BR/&gt;&lt;BR/&gt;As I'm not a developer, I couldn't speak towards why it's not 'like in WFW'.That's a design choice by them who do the programming.&lt;BR/&gt;&lt;BR/&gt;This thread has been about using 'Regular Expressions' as a means to do a search in OpenOffice.org.  "Regular Expressions' ("Regex" for short), can give the user an extremely fine-tuned search-and-replace action -- with a very strong emphasis on 'extremely'.&lt;BR/&gt;&lt;BR/&gt;Sometimes you might want to change a word (or part of a word) only if it's in the past tense, and then only if the paragraph is talking about a certain topic.  With a general find-and-replace (as found in WFW), the user has to manually check each potential change (including the paragraph's topic / context!), one after another -- and this can take quite a long time in a document that's several hundred pages long.&lt;BR/&gt;&lt;BR/&gt;A well-crafted Regex can have the program (the word processor, in this case) do the checking for you -- hit 'enter' once, and it's done.&lt;BR/&gt;&lt;BR/&gt;Sure, using Regex takes a bit of effort to learn at first.  But compare riding a bicycle to riding a tricycle: one takes effort to learn but is much more effective at getting you from one place to another;  the other is easy and you never fall off, but it is very slow and you really wouldn't want to travel far with it.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/1756832842255704775'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/1756832842255704775'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1232226720000#c1756832842255704775' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-4466681683470383090</id><published>2009-01-17T02:27:00.000-07:00</published><updated>2009-01-17T02:27:00.000-07:00</updated><title type='text'>This all seems massively more difficult than in W4...</title><content type='html'>This all seems massively more difficult than in W4W. Why doesn't the Find/Replace dialog box give you the option of inserting non-printing characters?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4466681683470383090'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4466681683470383090'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1232184420000#c4466681683470383090' title=''/><author><name>Yaffle</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-6909078154368763229</id><published>2008-10-20T22:17:00.000-06:00</published><updated>2008-10-20T22:17:00.000-06:00</updated><title type='text'>To "Wheat", earlier today:Frankly, the easiest way...</title><content type='html'>To &amp;quot;Wheat&amp;quot;, earlier today:&lt;BR/&gt;&lt;BR/&gt;Frankly, the easiest way to find-&amp;amp;-replace an em-dash with two regular hyphens is to use the standard non-regular-expression way in OpenOffice; just copy an em-dash from somewhere in the document, and paste it in the &amp;#39;Search for&amp;#39; field, and then put two &amp;#39;--&amp;#39;s (hyphens) in the &amp;#39;Replace with&amp;#39; field.&lt;BR/&gt;&lt;BR/&gt;If you&amp;#39;re *really* going to go through the trouble of using a regular expression, you could use the unicode for the em-dash (U+2014, or ), and replace it with two hyphens, but -- my goodness -- why do that?&lt;BR/&gt;&lt;BR/&gt;OpenOffice&amp;#39;s find-and-replace feature really uses the regexp portions to locate positions and contextual clues to locate search results, rather than specifiying *what* to find... It&amp;#39;s just the flavor the codewriters settled-on.&lt;BR/&gt;&lt;BR/&gt;Good luck with the em-dash to double-hyphen work; let us know how it goes.&lt;BR/&gt;&lt;BR/&gt;-Fionn</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/6909078154368763229'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/6909078154368763229'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1224562620000#c6909078154368763229' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-4515624929122288870</id><published>2008-10-20T19:35:00.000-06:00</published><updated>2008-10-20T19:35:00.000-06:00</updated><title type='text'>Can you include a regular expression for replacing...</title><content type='html'>Can you include a regular expression for replacing a long em-dash with two regular hyphens?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4515624929122288870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/4515624929122288870'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1224552900000#c4515624929122288870' title=''/><author><name>Wheat</name><uri>http://www.blogger.com/profile/02773945813149897883</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-3036870049837326761</id><published>2008-08-25T07:36:00.000-06:00</published><updated>2008-08-25T07:36:00.000-06:00</updated><title type='text'>In response to the comment earlier today by T. Ric...</title><content type='html'>In response to the comment earlier today by T. Richardson:&lt;BR/&gt;&lt;BR/&gt;The problem your experiencing is a common one, so don't feel too bad about it!  What you're telling the system to look for is an end-of-line (the '$') followed by a tab (the '\t').  Regexp's weren't originally designed to cover more than one line at a time, so we need to look at the beginning of the line for our match rather than at the end of the line.&lt;BR/&gt;&lt;BR/&gt;Try looking for either 1) a 'New line' character followed by a tab, or 2) a 'start of line' marker followed by a tab, or 3) a 'carriage return' character followed by a tab.&lt;BR/&gt;&lt;BR/&gt;Each of these tells the system to look for a tab at the beginning of a paragraph.&lt;BR/&gt;&lt;BR/&gt;The search string would be either 1) '\n\t', 2)^\t, or 3) a '\r\t' (and of course, don't include the quote-marks!).  My personal preference is choice #2.&lt;BR/&gt;&lt;BR/&gt;The problem is that it will catch the first paragraph, and give it a tab.  This does not solve your criteria that the tab must always follow a paragraph-end -- but in a large document, a manual fix for just one paragraph at the top of the document shouldn't be too much trouble, right?&lt;BR/&gt;&lt;BR/&gt;-Fionn</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3036870049837326761'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3036870049837326761'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1219671360000#c3036870049837326761' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-723653900806098945</id><published>2008-08-25T00:00:00.000-06:00</published><updated>2008-08-25T00:00:00.000-06:00</updated><title type='text'>I want to replace every paragraph that is followed...</title><content type='html'>I want to replace every paragraph that is followed by a tab at the beginning of the next line with a newline and a tab.&lt;BR/&gt;&lt;BR/&gt;How do I do that? the find pattern &lt;BR/&gt;$\t&lt;BR/&gt;doesn't match :-)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/723653900806098945'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/723653900806098945'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1219644000000#c723653900806098945' title=''/><author><name>Tim Richardson</name><uri>http://www.blogger.com/profile/17462513050655888836</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-1013162315516051048</id><published>2008-07-13T20:51:00.000-06:00</published><updated>2008-07-13T20:51:00.000-06:00</updated><title type='text'>I am searching how to use regular expressions prop...</title><content type='html'>I am searching how to use regular expressions properly to REPLACE wildcards.&lt;BR/&gt;&lt;BR/&gt;e.g. I have numerous occurrences of&lt;BR/&gt;" This is a sentence. "&lt;BR/&gt;I want&lt;BR/&gt;"This is a sentence."&lt;BR/&gt;"\ [A_Z]&lt;BR/&gt;finds all instances of a double quote separated by a spurious space from a following capital letter, but I cannot find how to use the 'found' character in the replacement string.&lt;BR/&gt;I had expected ? would do, but the found letter in this instance is replace with the literal question mark.&lt;BR/&gt;&lt;BR/&gt;Where can I find instructions on replacement wildcards in OO (ver 2.3, 2.4)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/1013162315516051048'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/1013162315516051048'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1216003860000#c1013162315516051048' title=''/><author><name>danlj</name><uri>http://www.blogger.com/profile/12154327214811279127</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-8402455815629697288</id><published>2008-06-30T19:50:00.000-06:00</published><updated>2008-06-30T19:50:00.000-06:00</updated><title type='text'>Regarding the double newlines, or the empty paragr...</title><content type='html'>Regarding the double newlines, or the empty paragraph.&lt;BR/&gt;In my text, removing the empty paragraph won't work, because it eliminates the format information of the next line...&lt;BR/&gt;&lt;BR/&gt;end of prev paragaraph.&lt;B&gt;new paragraph&lt;/B&gt;&lt;BR/&gt;&lt;B&gt;new paragraph&lt;/B&gt;&lt;BR/&gt;HEADING 2&lt;BR/&gt;&lt;BR/&gt;- would end up as ... -&lt;BR/&gt;&lt;BR/&gt;end of prev paragaraph.&lt;B&gt;new paragraph&lt;/B&gt;&lt;BR/&gt;&lt;I&gt;heading 2 with default format&lt;/I&gt;&lt;BR/&gt;&lt;BR/&gt;heading 2 would actually be stripped off its heading formatting and document hierarchy.&lt;BR/&gt;&lt;BR/&gt;Such an everyday task, do we have to do it by hand?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/8402455815629697288'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/8402455815629697288'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1214877000000#c8402455815629697288' title=''/><author><name>chuck</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-7630152776943737486</id><published>2008-06-10T08:42:00.000-06:00</published><updated>2008-06-10T08:42:00.000-06:00</updated><title type='text'>Interesting article, thanks for all.</title><content type='html'>Interesting article, thanks for all.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/7630152776943737486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/7630152776943737486'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1213108920000#c7630152776943737486' title=''/><author><name>Juegos</name><uri>http://www.quejuegos.org</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-3365345755126549937</id><published>2008-05-13T21:22:00.000-06:00</published><updated>2008-05-13T21:22:00.000-06:00</updated><title type='text'>To the Anonymous commenter regarding replacing bla...</title><content type='html'>To the Anonymous commenter regarding replacing blank lines....&lt;BR/&gt;&lt;BR/&gt;Remember that paragraphs are single lines in Writer (or any Word Processor, for that matter), so the caret (beginning of line) and DollarSign (End of Line) combo (^$) is a blank line, not just a blank paragraph as indicated in the blog entry above.&lt;BR/&gt;&lt;BR/&gt;You then want to repeat it (because the RegEx in Writer doesn't have {min,max} features) with a backreference ( use "$1"), with a plus-sign, since you want at least one (contrast this with the asterisk/star ("*") which matches zero or more.&lt;BR/&gt;&lt;BR/&gt;You'll want something like:&lt;BR/&gt;&lt;BR/&gt;(^$)$1+ as your seaerch pattern.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3365345755126549937'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/3365345755126549937'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1210735320000#c3365345755126549937' title=''/><author><name>Fionn</name><uri>http://www.blogger.com/profile/08804691499081321229</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-8544609315733972726.post-2102928598330647647</id><published>2008-04-08T08:32:00.000-06:00</published><updated>2008-04-08T08:32:00.000-06:00</updated><title type='text'>I read dozens of pages in forums and did not find ...</title><content type='html'>I read dozens of pages in forums and did not find a so natural thing:&lt;BR/&gt;how can one&lt;BR/&gt;automatically replace all double blanc lines by a single blank line.&lt;BR/&gt;(If configured correctly, whil also&lt;BR/&gt;change a triple repetition of a blank line into a single blanc line).&lt;BR/&gt;&lt;BR/&gt;Something so easy in emacs and so difficult in OOW.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/2102928598330647647'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8544609315733972726/2625091374605603432/comments/default/2102928598330647647'/><link rel='alternate' type='text/html' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html?showComment=1207665120000#c2102928598330647647' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.oooninja.com/2007/12/example-regular-expressions-for-writer.html' ref='tag:blogger.com,1999:blog-8544609315733972726.post-2625091374605603432' source='http://www.blogger.com/feeds/8544609315733972726/posts/default/2625091374605603432' type='text/html'/></entry></feed>