Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Documentation/Online Help/Main help    [ Add a report in this area ]  
Report #:  14987   Status: Closed
No documentation for regular expression syntax
Project:  Delphi Build #:  9.0.1935.22056
Version:    9.0 Submitted By:   Andre Artus
Report Type:  Documentation problem Date Reported:  8/12/2005 8:12:46 PM
Severity:    Commonly encountered problem Last Updated: 8/31/2010 9:54:48 PM
Platform:    All versions Internal Tracking #:  
Resolution: Duplicate  Resolved in Build: : 15.0.3677.27490
Duplicate of:  10355
Voting and Rating
Overall Rating: (2 Total Ratings)
4.00 out of 5
Total Votes: None
Description
The entry for Regular expressions (for Find/ Find in Files) is nonexistent.
I originally wanted to just add this as a comment to report #10355  but I kept running into the following exception:

An error occurred in the application:
The exception type is:  
SoapHeaderException
The message that came along with the exception is:
violation of PRIMARY or UNIQUE KEY constraint "USERCOMMENTS_PK" on table "USER_COMMENTS"
You were attempting to access this link:
http://qc.borland.com/wc/qcmain.aspx?ac=10355&pi=-1
You probably can use your "Back" button to return to where you were before the error occurred, or simply return to Home Page.

Anyway here is the comment I wanted to add.

I agree with Joe: this is a regression from D7. I have been a long standing user of Borland products (since Turbo Pascal 5) and I have never been so disappointed. The state of the online help in D2005 is deplorable; I find myself reverting to the D7 help time and time again (I should not have to do this). There are so many missing indexes, missing content, and broken links. I am yet to find a class, function, or method entry with an example (I admit that I have not checked every possibility, maybe there is one or two) check FileOpen, FileSeek, or FileRead in D7 and compare it to D2005.

Anyway, I have copied the regular expressions entry from the D7 help into the workaround for those users that don't have it.
Steps to Reproduce:
Go to the "Find Text" dialog (Search/Find... or Ctrl+F) and press F1 for help.
Find the part that says "Regular expressions", notice that there is no information for regular expressions either on this page or on any page linked to this page.

Go to the Index page in the help, type "regular expressions" in the "Look for:" box, go through every entry an notice that not one relates to the "Find Text" dialog.

Go to the Search page in the help.
Type "regular expressions" in the "Look for:" box, and click "Search". Go through every entry an notice that three entries relate to the "Find Text" dialog, but do not have any information on the expressions themselves!

Give up and consult your Delphi 7 online help.
Workarounds
Regular expressions

Regular expressions are characters that customize a search string. The product recognizes these regular expressions:

Character  Description
^   A circumflex at the start of the string matches the
     start of a line.
$   A dollar sign at the end of the expression matches
     the end of a line.
.   A period matches any character.
*   An asterisk after a string matches any number
     of occurrences of that string followed by any
     characters, including zero characters.
     For example, bo* matches bot, bo and boo but not b.
+   A plus sign after a string matches any number of
     occurrences of that string followed by any characters
     except zero characters.
     For example, bo+ matches boo, and booo,
     but not bo or be.

[ ]  Characters in brackets match any one character
     that appears in the brackets, but no others.
     For example [bot] matches b, o, or t.
[^]  A circumflex at the start of the string in brackets
     means NOT.
     Hence, [^bot] matches any characters except
     b, o, or t.
[-]  A hyphen within the brackets signifies a range
     of characters.
     For example, [b-o] matches any character from
     b through o.
{ }  Braces group characters or expressions. Groups
     can be nested, with a maximum number of ten groups
     in a single pattern.
     For the Replace operation, the groups are referred
     to by a backslash and a number according to the
     position in the "Text to find" expression, beginning
     with 0. For example, given the text to find and
     replacement strings, Find: {[0-9]}{[a-c]*},
     Replace: NUM\1, the string 3abcabc is changed to
     NUMabcabc.

  \  A backslash before a wildcard character tells the
     Code editor to treat that character literally,
     not as a wildcard. For example,
     \^ matches ^ and does not look for the start of a
     line.
Attachment
None
Comments

Peter Below at 2/13/2006 4:07:18 AM -
The BDS2006 online help still does not contain a descritpion of the regular expression syntax.

Server Response from: ETNACODE01