home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #3 / K-CD-3-2002.ISO / OpenOffice / f_0066 / common.jar / text / common / 01 / 02100001.xml < prev    next >
Encoding:
Extensible Markup Language  |  2001-09-11  |  11.2 KB  |  133 lines

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <html><head><title>List of regular expressions</title><meta name="filename" content="text/common/01/02100001"/><help:css-file-link xmlns:help="http://openoffice.org/2000/help"/><!--The CSS style header method for setting styles--><style type="text/css">
  3.  
  4.         table.Tabelle1{
  5.                 }
  6.         span.Tabelle1A{
  7.                 width:3.283cm;}
  8.         span.Tabelle1B{
  9.                 width:14.718cm;}
  10.         td.Tabelle1A1{
  11.                 }
  12.         td.Tabelle1B1{
  13.                 border-width:0.002cm; border-style:solid; border-color:#000000;}
  14.         td.Tabelle1A2{
  15.                 }
  16.         td.Tabelle1B2{
  17.                 }
  18.         p.P1{
  19.                 }
  20.         span.T1{
  21.                 font-weight:bold;}
  22.         </style></head><body>
  23.   
  24.   
  25.   <p class="P1"/>
  26.   <p class="Head1"><help:to-be-embedded Eid="02100001" xmlns:help="http://openoffice.org/2000/help"><help:link Id="68251">List of regular expressions</help:link></help:to-be-embedded></p>
  27.   <p class="Paragraph"><help:embedded Id="65852" Eid="02100000" xmlns:help="http://openoffice.org/2000/help"/></p>
  28.   <table border="1" bordercolor="#000000" cellpadding="2" cellspacing="0" page-break-inside="page-break-inside:avoid"><tr class=""><th class="Tabelle1A1" style="text-align:left;"><span class="Tabelle1A">
  29.       <p class="TableHead"><span class="T1">Character:</span></p>
  30.      </span></th><th class="Tabelle1B1" style="text-align:left;"><span class="Tabelle1B">
  31.       <p class="TableHead"><span class="T1">Result/Use:</span></p>
  32.      </span></th></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  33.      <p class="TextInTable">.</p>
  34.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  35.      <p class="TextInTable">Stands for any character. The search term "sh.rt" finds both "shirt" and "short"</p>
  36.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  37.      <p class="TextInTable">^Peter</p>
  38.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  39.      <p class="TextInTable">Only finds the word if it appears at the beginning of a paragraph. Special contents (e.g., blank spaces and character-anchored frames) at the beginning of a paragraph will be ignored.</p>
  40.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  41.      <p class="TextInTable">Peter$</p>
  42.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  43.      <p class="TextInTable">Only finds the word if it appears at the end of a paragraph. Special contents (e.g., blank spaces and character-anchored frames) at the end of a paragraph will be ignored.</p>
  44.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  45.      <p class="TextInTable">*</p>
  46.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  47.      <p class="TextInTable">The character in front of it can occur from zero times up to any number of times: For example, "Ab*c" finds "Ac", "Abc", "Abbc", "Abbbc" etc.</p>
  48.      <p class="TextInTable">For "any characters or no characters", the combination .* may be used.</p>
  49.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  50.      <p class="TextInTable">+</p>
  51.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  52.      <p class="TextInTable">The character before this symbol must appear at least once, or in unlimited instances: "AX.+4" finds "AX 4", but not "AX4"</p>
  53.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  54.      <p class="TextInTable">?</p>
  55.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  56.      <p class="TextInTable">The character preceding ? may occur never or only once. "Texts?" finds the words "Text" and "Texts".</p>
  57.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  58.      <p class="TextInTable">\C</p>
  59.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  60.      <p class="TextInTable">Finds the specific character after the slash. To search for all dollar signs in a document, enter: \$</p>
  61.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  62.      <p class="TextInTable">\n</p>
  63.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  64.      <p class="TextInTable">Finds a hard row break which has been inserted with Shift+Enter. Use this sign to change row breaks into paragraph breaks. Enter a <span class="T1">\n</span> in the <span class="T1">Search for</span> as well as the <span class="T1">Replace with</span> fields. Now activate the <span class="T1">Replace all</span> button.</p>
  65.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  66.      <p class="TextInTable">\t</p>
  67.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  68.      <p class="TextInTable">Finds a tab space (this expression can also be used in <span class="T1">Replace with</span>)</p>
  69.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  70.      <p class="TextInTable">\></p>
  71.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  72.      <p class="TextInTable">The search term must appear at the end of a word: "book\>" finds "checkbook", but not "bookmark".</p>
  73.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  74.      <p class="TextInTable">\<</p>
  75.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  76.      <p class="TextInTable">The search term must appear at the beginning of a word: "\>book" finds "bookmark", but not "checkbook".</p>
  77.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  78.      <p class="TextInTable">^$</p>
  79.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  80.      <p class="TextInTable">Searches for blank paragraphs.</p>
  81.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  82.      <p class="TextInTable">$</p>
  83.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  84.      <p class="TextInTable">Searches for the end of a paragraph</p>
  85.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  86.      <p class="TextInTable">^.</p>
  87.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  88.      <p class="TextInTable">Searches for the first character of a paragraph.</p>
  89.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  90.      <p class="TextInTable">&</p>
  91.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  92.      <p class="TextInTable">This character in the <span class="T1">Replace with</span> box inserts the find_text.</p>
  93.      <p class="TextInTable">"Window" in the <span class="T1">Search for</span> field and "&frame" in the <span class="T1">Replace with</span> fields returns "window frame" with <span class="T1">Replace</span>.</p>
  94.      <p class="TextInTable">"A A A" in the <span class="T1">Search for</span> field and "&bc\t" in the <span class="T1">Replace with</span> field returns "Abc(Tab) Abc(Tab) Abc(Tab)" with <span class="T1">Replace all</span>.</p>
  95.      <p class="TextInTable">Only enter & in the <span class="T1">Replace with</span> box if you want to apply different <span class="T1">Attributes</span> or a different <span class="T1">Format</span> to the find text.</p>
  96.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  97.      <p class="TextInTable">[abc123]</p>
  98.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  99.      <p class="TextInTable">Finds all the characters between the brackets</p>
  100.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  101.      <p class="TextInTable">[a-e]</p>
  102.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  103.      <p class="TextInTable">Finds all characters between a and e</p>
  104.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  105.      <p class="TextInTable">[a-eh-x]</p>
  106.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  107.      <p class="TextInTable">Finds all characters between the letters a-e and h-x.</p>
  108.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  109.      <p class="TextInTable">[^a-s]</p>
  110.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  111.      <p class="TextInTable">Finds all characters except for a-s</p>
  112.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  113.      <p class="TextInTable">\xXX</p>
  114.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  115.      <p class="TextInTable">Finds all characters with the hexadecimal code XX</p>
  116.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  117.      <p class="TextInTable">\XXX</p>
  118.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  119.      <p class="TextInTable">Finds all characters with the octal code XXX (this always consists of three digits)</p>
  120.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  121.      <p class="TextInTable">'a tip</p>
  122.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  123.      <p class="TextInTable">Characters between single quotes in a regular expression are not taken into account. If they are to be taken into account additionally enter a slash: \'no reference\'.</p>
  124.     </span></td></tr><tr class=""><td class="Tabelle1A2" style="text-align:left;"><span class="Tabelle1A">
  125.      <p class="TextInTable">this|that</p>
  126.     </span></td><td class="Tabelle1B2" style="text-align:left;"><span class="Tabelle1B">
  127.      <p class="TextInTable">Finds "this", as an alternative "that"</p>
  128.      <p class="TextInTable">The vertical line is used to build alternative search phrases: "Peter hasIPeter was" searches for "Peter has" in one paragraph. If it's not found in the paragraph or from one match until the paragraph's end, it will then search for Peter was.</p>
  129.     </span></td></tr></table>
  130.   <p class="Paragraph"/>
  131.   <p class="Paragraph"><help:switch select="Program" xmlns:help="http://openoffice.org/2000/help"><help:case select="DRAW"/><help:case select="IMPRESS"/><help:default>For a logical search impression with nested AND-/OR links you can use parenthesis. For example search "((a[A-z]*)|(ab[A-z]*)|b[A-z]*))$" everything that starts with a space and then with an "a" or "b" and is at the end of the sentence..</help:default></help:switch></p>
  132.   <p class="Paragraph"/>
  133.  </body></html>