1. Liebe Forumsgemeinde,

    aufgrund der Bestimmungen, die sich aus der DSGVO ergeben, müssten umfangreiche Anpassungen am Forum vorgenommen werden, die sich für uns nicht wirtschaftlich abbilden lassen. Daher haben wir uns entschlossen, das Forum in seiner aktuellen Form zu archivieren und online bereit zu stellen, jedoch keine Neuanmeldungen oder neuen Kommentare mehr zuzulassen. So ist sichergestellt, dass das gesammelte Wissen nicht verloren geht, und wir die Seite dennoch DSGVO-konform zur Verfügung stellen können.
    Dies wird in den nächsten Tagen umgesetzt.

    Wir danken allen, die sich in den letzten Jahren für Hilfesuchende und auch für das Forum selbst engagiert haben.

gibt es einen texteditor dafuer..

Dieses Thema im Forum "Software" wurde erstellt von waaser, 6. September 2001.

  1. waaser

    waaser New Member

    gibt es einen texteditor fuer mac, mit dem man eine suche durchführen kann, die eine wildcard enthält?

    also z.b. ein langes xml dokument ca. 10 mb gross soll nach folgenden stellen durchsucht werdem die mit "<id>" anfangen und mit "</name>" aufhören.
    der text zwischen "<id> und "</name> ist unbekannt. also müsste es moeglich sein fuer den unbekannten text einen * oder ähnliches einzusetzen.
    habe keinen weg gefunden es mit bbedit zu machen. vielleicht geht es ja auch mit bbedit, aber ich weiss nich wie.
    hat jemand ahnung dazu wie und mit was es gehen koennte?
     
  2. blind dog

    blind dog New Member

    Klar! BBEdit. Die light-Version ist gratis und sollte auf jeder MW-CD drauf sein.
     
  3. blind dog

    blind dog New Member

    Sorry, da hab ich den Text garnicht bis zuende gelesen!
     
  4. waaser

    waaser New Member

    ja, ich habe es gesehen, hehe.
    aber wie geht das jetzt nun mit bbedit ?
    so gut bbedit ist, aehhh aber einen hinweis wo man dazu nachschauen koennte, findet man nirgens. :(
     
  5. Tambo

    Tambo New Member

    Acrobat müsste das können, bin jedoch kein spezialist darin....

    gruss, tAmbo
     
  6. michael_sch

    michael_sch New Member

    hallo antwortsuchender,
    unten eine liste der suchmöglichkeiten von bbedit und lite.
    "grep" muss aktiviert sein.
    auf die schnelle kann ich dir jetzt nicht den suchausdruck zusammensetzen, den du brauchst, aber ich hoffe, du findest dich etwas durch.

    gruss michael

    ps. ausserdem ist bei bbedit eigentlich ein ausführliches handbuch im pdf-format dabei. dort unter grep schauen.

    CHARACTERS TO USE IN SEARCH PATTERNS:

    any character:
    represents the character typed, with the exception of the special characters defined below
    a represents a, b represents b, etc.
    anmerkung: auch das leerzeichen ist ein character. es wird jetzt, bei 6.1.1, in der eingabemaske der suchen-funktion angezeigt, und ist kein special character. man braucht kein backslash-s dafür.

    . (punkt)
    any character (except line breaks)
    will match c, 3, space, etc.

    # (gatter)
    any digit
    will match 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9

    d
    any digit
    will match 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 (same as #)

    D
    any non digit
    will match anything except 0, 1, 2, 3, 4, 5, 6, 7, 8, or 9 (anything not matched by d)

    ^ (caret/dach, alt shift 6 zweimal drücken)
    beginning of line

    $ (dollarzeichen, shift 4)
    end of line


    tab


    line break (return, harter zeilenumbruch)



    newline
    matches a unix line break (line feed)

    f
    form feed

    s
    whitespace
    matches any whitespace character (space, tab, line break, newline, form feed)

    S
    non whitespace
    matches any non whitespace character (anything not matched by s)

    w
    word character
    matches any word character.
    according to the release notes: "A WORD IS ANY RUN OF NON-WORD-BREAK CHARACTERS BOUNDED BY WORD BREAKS. WORD CHARACTERS IN THE ASCII RANGE ARE GENERALLY ALPHANUMERIC, AND CHARACTERS WHOSE VALUE IS GREATER THAN 127 ARE ALSO CONSIDERED WORD CHARACTERS." typically this is letters, numbers, and underscores, but also includes some other characters you might not consider word characters.

    W
    non word character
    matches any non word character (anything not matched by w)

    character
    represents a character that is normally a special character
    \ means , . means ., etc.

    [any series of characters]
    represents any of the characters inside the brackets
    [abc] represents an a, b, or c

    [any character-another character]
    represents any characters within the range of characters specified
    [a-c] represents a, b, or c

    [^any series of characters]
    represents any character except the ones specified after the ^
    [^c3] represents any character except c or 3

    REPRESENTING MULTIPLE CHARACTER PATTERNS IN SEARCHES:

    ?
    represents 0 or 1 of the previous character
    ba?t matches bat or bt, but not baat

    * (aus dem buchstabenblock)
    represents 0 or more of the previous character
    ba*t matches bt, bat, baat, etc. but not boat

    + (aus dem buchstabenblock)
    represents 1 or more of the previous character
    ba+t matches bat, baat, etc. but not bt

    pattern1|pattern2
    represents either of the patterns specified (or)
    ba|t matches ba or t but not bat (it will match ba and then t for two matches instead of one)

    (pattern)one of the above special characters
    same as above, but treats the characters within the parenthesis as a group
    (ba)*t will match t, bat, babat, but not bt

    SAVING PATTERNS IN SEARCHES:

    (pattern)
    saves the match to the pattern to be used for replacement, in order of the patterns matched. The first pattern is saved in 1, the second in 2, etc. These can be used in the replacement to enter the pattern that was matched.
    a(b.c) would save whatever b.c matched in 1 for replacement, so if it were to match bjc, and you use 1 in the replacement, bjc gets entered in its place.

    CHARACTERS TO USE IN REPLACEMENT PATTERNS:

    &
    the entire pattern matched in the search
    if you search for a@b.c and BBEdit finds a@bjc then that is what & will represent in the replacement pattern

    digit
    the saved pattern for the digit you specified. BBEdit saves patterns in order from 1 to 9, then
     

Diese Seite empfehlen