home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-03-02 | 9.3 KB | [ TEXT/ALFA]
open in: MacOS 8.1
extracted
|
Win98
extracted
|
DOS
extracted
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary ).
You can browse this item here: Regular Expressions
Confidence Program Detection Match Type Support
10%
dexvert
MacBinary (archive/macBinary)
fallback
Supported
1%
dexvert
Text File (text/txt)
fallback
Supported
100%
file
MacBinary II, inited, Sat Mar 2 19:52:15 1996, modified Sat Mar 2 19:52:15 1996, creator Alpha editor, type ASCII, 8144 bytes "Regular Expressions" , at 0x2050 1141 bytes resource
default (weak)
99%
file
data
default
74%
TrID
Macintosh plain text (MacBinary)
default
25%
TrID
MacBinary 2
default (weak)
100%
siegfried
fmt/1762 MacBinary (II)
default
100%
lsar
MacBinary
default
id metadata key value macFileType [ TEXT] macFileCreator [ ALFA]
hex view +--------+-------------------------+-------------------------+--------+--------+ |00000000| 00 13 52 65 67 75 6c 61 | 72 20 45 78 70 72 65 73 |..Regula|r Expres| |00000010| 73 69 6f 6e 73 00 00 00 | 00 00 00 00 00 00 00 00 |sions...|........| |00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00000040| 00 54 45 58 54 41 4c 46 | 41 01 00 00 00 00 00 00 |.TEXTALF|A.......| |00000050| 00 00 00 00 00 1f d0 00 | 00 04 75 ad 5e 9d bf ad |........|..u.^...| |00000060| 5e 9d bf 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |^.......|........| |00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 f6 f8 00 00 |........|........| |00000080| 4e 4f 54 45 3a 20 09 54 | 68 65 20 66 6f 6c 6c 6f |NOTE: .T|he follo| |00000090| 77 69 6e 67 20 69 73 20 | 74 68 65 20 6d 61 6e 75 |wing is |the manu| |000000a0| 61 6c 20 70 61 67 65 20 | 73 75 70 70 6c 69 65 64 |al page |supplied| |000000b0| 20 77 69 74 68 20 74 68 | 65 20 72 65 67 75 6c 61 | with th|e regula| |000000c0| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 0d 09 09 72 |r expres|sion...r| |000000d0| 6f 75 74 69 6e 65 73 20 | 75 73 65 64 20 62 6f 74 |outines |used bot| |000000e0| 68 20 69 6e 20 41 6c 70 | 68 61 20 61 6e 64 20 54 |h in Alp|ha and T| |000000f0| 63 6c 2e 20 2d 20 70 65 | 74 65 2e 0d 0d 0d 0d 20 |cl. - pe|te..... | |00000100| 20 20 20 20 4e 41 4d 45 | 0d 20 20 20 20 20 20 20 | NAME|. | |00000110| 20 20 20 72 65 67 63 6f | 6d 70 2c 20 72 65 67 65 | regco|mp, rege| |00000120| 78 65 63 2c 20 72 65 67 | 73 75 62 2c 20 72 65 67 |xec, reg|sub, reg| |00000130| 65 72 72 6f 72 20 2d 20 | 72 65 67 75 6c 61 72 20 |error - |regular | |00000140| 65 78 70 72 65 73 73 69 | 6f 6e 0d 20 20 20 20 20 |expressi|on. | |00000150| 20 20 20 20 20 68 61 6e | 64 6c 65 72 0d 0d 20 20 | han|dler.. | |00000160| 20 20 20 53 59 4e 4f 50 | 53 49 53 0d 20 20 20 20 | SYNOP|SIS. | |00000170| 20 20 20 20 20 20 23 69 | 6e 63 6c 75 64 65 20 3c | #i|nclude <| |00000180| 72 65 67 65 78 70 2e 68 | 3e 0d 0d 20 20 20 20 20 |regexp.h|>.. | |00000190| 20 20 20 20 20 72 65 67 | 65 78 70 20 2a 72 65 67 | reg|exp *reg| |000001a0| 63 6f 6d 70 28 65 78 70 | 29 0d 20 20 20 20 20 20 |comp(exp|). | |000001b0| 20 20 20 20 63 68 61 72 | 20 2a 65 78 70 3b 0d 0d | char| *exp;..| |000001c0| 20 20 20 20 20 20 20 20 | 20 20 69 6e 74 20 72 65 | | int re| |000001d0| 67 65 78 65 63 28 70 72 | 6f 67 2c 20 73 74 72 69 |gexec(pr|og, stri| |000001e0| 6e 67 29 0d 20 20 20 20 | 20 20 20 20 20 20 72 65 |ng). | re| |000001f0| 67 65 78 70 20 2a 70 72 | 6f 67 3b 0d 20 20 20 20 |gexp *pr|og;. | |00000200| 20 20 20 20 20 20 63 68 | 61 72 20 2a 73 74 72 69 | ch|ar *stri| |00000210| 6e 67 3b 0d 0d 20 20 20 | 20 20 20 20 20 20 20 72 |ng;.. | r| |00000220| 65 67 73 75 62 28 70 72 | 6f 67 2c 20 73 6f 75 72 |egsub(pr|og, sour| |00000230| 63 65 2c 20 64 65 73 74 | 29 0d 20 20 20 20 20 20 |ce, dest|). | |00000240| 20 20 20 20 72 65 67 65 | 78 70 20 2a 70 72 6f 67 | rege|xp *prog| |00000250| 3b 0d 20 20 20 20 20 20 | 20 20 20 20 63 68 61 72 |;. | char| |00000260| 20 2a 73 6f 75 72 63 65 | 3b 0d 20 20 20 20 20 20 | *source|;. | |00000270| 20 20 20 20 63 68 61 72 | 20 2a 64 65 73 74 3b 0d | char| *dest;.| |00000280| 0d 20 20 20 20 20 20 20 | 20 20 20 72 65 67 65 72 |. | reger| |00000290| 72 6f 72 28 6d 73 67 29 | 0d 20 20 20 20 20 20 20 |ror(msg)|. | |000002a0| 20 20 20 63 68 61 72 20 | 2a 6d 73 67 3b 0d 0d 20 | char |*msg;.. | |000002b0| 20 20 20 20 44 45 53 43 | 52 49 50 54 49 4f 4e 0d | DESC|RIPTION.| |000002c0| 20 20 20 20 20 20 20 20 | 20 20 54 68 65 73 65 20 | | These | |000002d0| 66 75 6e 63 74 69 6f 6e | 73 20 69 6d 70 6c 65 6d |function|s implem| |000002e0| 65 6e 74 20 65 67 72 65 | 70 28 31 29 2d 73 74 79 |ent egre|p(1)-sty| |000002f0| 6c 65 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |le regul|ar expre| |00000300| 73 73 69 6f 6e 73 0d 20 | 20 20 20 20 20 20 20 20 |ssions. | | |00000310| 20 61 6e 64 20 73 75 70 | 70 6f 72 74 69 6e 67 20 | and sup|porting | |00000320| 66 61 63 69 6c 69 74 69 | 65 73 2e 0d 0d 20 20 20 |faciliti|es... | |00000330| 20 20 20 20 20 20 20 52 | 65 67 63 6f 6d 70 20 63 | R|egcomp c| |00000340| 6f 6d 70 69 6c 65 73 20 | 61 20 72 65 67 75 6c 61 |ompiles |a regula| |00000350| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 20 69 6e 74 |r expres|sion int| |00000360| 6f 20 61 20 73 74 72 75 | 63 74 75 72 65 20 6f 66 |o a stru|cture of| |00000370| 0d 20 20 20 20 20 20 20 | 20 20 20 74 79 70 65 20 |. | type | |00000380| 72 65 67 65 78 70 2c 20 | 61 6e 64 20 72 65 74 75 |regexp, |and retu| |00000390| 72 6e 73 20 61 20 70 6f | 69 6e 74 65 72 20 74 6f |rns a po|inter to| |000003a0| 20 69 74 2e 20 20 54 68 | 65 20 73 70 61 63 65 20 | it. Th|e space | |000003b0| 68 61 73 0d 20 20 20 20 | 20 20 20 20 20 20 62 65 |has. | be| |000003c0| 65 6e 20 61 6c 6c 6f 63 | 61 74 65 64 20 75 73 69 |en alloc|ated usi| |000003d0| 6e 67 20 6d 61 6c 6c 6f | 63 28 33 29 20 61 6e 64 |ng mallo|c(3) and| |000003e0| 20 6d 61 79 20 62 65 20 | 72 65 6c 65 61 73 65 64 | may be |released| |000003f0| 20 62 79 20 66 72 65 65 | 2e 0d 0d 20 20 20 20 20 | by free|... | |00000400| 20 20 20 20 20 52 65 67 | 65 78 65 63 20 6d 61 74 | Reg|exec mat| |00000410| 63 68 65 73 20 61 20 4e | 55 4c 2d 74 65 72 6d 69 |ches a N|UL-termi| |00000420| 6e 61 74 65 64 20 73 74 | 72 69 6e 67 20 61 67 61 |nated st|ring aga| |00000430| 69 6e 73 74 20 74 68 65 | 20 63 6f 6d 70 69 6c 65 |inst the| compile| |00000440| 64 0d 20 20 20 20 20 20 | 20 20 20 20 72 65 67 75 |d. | regu| |00000450| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 20 69 |lar expr|ession i| |00000460| 6e 20 70 72 6f 67 2e 20 | 20 49 74 20 72 65 74 75 |n prog. | It retu| |00000470| 72 6e 73 20 31 20 66 6f | 72 20 73 75 63 63 65 73 |rns 1 fo|r succes| |00000480| 73 20 61 6e 64 20 30 0d | 20 20 20 20 20 20 20 20 |s and 0.| | |00000490| 20 20 66 6f 72 20 66 61 | 69 6c 75 72 65 2c 20 61 | for fa|ilure, a| |000004a0| 6e 64 20 61 64 6a 75 73 | 74 73 20 74 68 65 20 63 |nd adjus|ts the c| |000004b0| 6f 6e 74 65 6e 74 73 20 | 6f 66 20 70 72 6f 67 27 |ontents |of prog'| |000004c0| 73 20 73 74 61 72 74 70 | 20 61 6e 64 0d 20 20 20 |s startp| and. | |000004d0| 20 20 20 20 20 20 20 65 | 6e 64 70 20 28 73 65 65 | e|ndp (see| |000004e0| 20 62 65 6c 6f 77 29 20 | 61 63 63 6f 72 64 69 6e | below) |accordin| |000004f0| 67 6c 79 2e 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |gly... | | |00000500| 54 68 65 20 6d 65 6d 62 | 65 72 73 20 6f 66 20 61 |The memb|ers of a| |00000510| 20 72 65 67 65 78 70 20 | 73 74 72 75 63 74 75 72 | regexp |structur| |00000520| 65 20 69 6e 63 6c 75 64 | 65 20 61 74 20 6c 65 61 |e includ|e at lea| |00000530| 73 74 20 74 68 65 0d 20 | 20 20 20 20 20 20 20 20 |st the. | | |00000540| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 28 6e 6f 74 20 | followi|ng (not | |00000550| 6e 65 63 65 73 73 61 72 | 69 6c 79 20 69 6e 20 6f |necessar|ily in o| |00000560| 72 64 65 72 29 3a 0d 0d | 20 20 20 20 20 20 20 20 |rder):..| | |00000570| 20 20 20 20 20 20 20 63 | 68 61 72 20 2a 73 74 61 | c|har *sta| |00000580| 72 74 70 5b 4e 53 55 42 | 45 58 50 5d 3b 0d 20 20 |rtp[NSUB|EXP];. | |00000590| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 63 68 61 | | cha| |000005a0| 72 20 2a 65 6e 64 70 5b | 4e 53 55 42 45 58 50 5d |r *endp[|NSUBEXP]| |000005b0| 3b 0d 0d 20 20 20 20 20 | 20 20 20 20 20 77 68 65 |;.. | whe| |000005c0| 72 65 20 4e 53 55 42 45 | 58 50 20 69 73 20 64 65 |re NSUBE|XP is de| |000005d0| 66 69 6e 65 64 20 28 61 | 73 20 31 30 29 20 69 6e |fined (a|s 10) in| |000005e0| 20 74 68 65 20 68 65 61 | 64 65 72 20 66 69 6c 65 | the hea|der file| |000005f0| 2e 20 20 4f 6e 63 65 20 | 61 0d 20 20 20 20 20 20 |. Once |a. | |00000600| 20 20 20 20 73 75 63 63 | 65 73 73 66 75 6c 20 72 | succ|essful r| |00000610| 65 67 65 78 65 63 20 68 | 61 73 20 62 65 65 6e 20 |egexec h|as been | |00000620| 64 6f 6e 65 20 75 73 69 | 6e 67 20 74 68 65 20 72 |done usi|ng the r| |00000630| 65 67 65 78 70 2c 20 65 | 61 63 68 0d 20 20 20 20 |egexp, e|ach. | |00000640| 20 20 20 20 20 20 73 74 | 61 72 74 70 2d 65 6e 64 | st|artp-end| |00000650| 70 20 70 61 69 72 20 64 | 65 73 63 72 69 62 65 73 |p pair d|escribes| |00000660| 20 6f 6e 65 20 73 75 62 | 73 74 72 69 6e 67 20 77 | one sub|string w| |00000670| 69 74 68 69 6e 20 74 68 | 65 20 73 74 72 69 6e 67 |ithin th|e string| |00000680| 2c 0d 20 20 20 20 20 20 | 20 20 20 20 77 69 74 68 |,. | with| |00000690| 20 74 68 65 20 73 74 61 | 72 74 70 20 70 6f 69 6e | the sta|rtp poin| |000006a0| 74 69 6e 67 20 74 6f 20 | 74 68 65 20 66 69 72 73 |ting to |the firs| |000006b0| 74 20 63 68 61 72 61 63 | 74 65 72 20 6f 66 20 74 |t charac|ter of t| |000006c0| 68 65 0d 20 20 20 20 20 | 20 20 20 20 20 73 75 62 |he. | sub| |000006d0| 73 74 72 69 6e 67 20 61 | 6e 64 20 74 68 65 20 65 |string a|nd the e| |000006e0| 6e 64 70 20 70 6f 69 6e | 74 69 6e 67 20 74 6f 20 |ndp poin|ting to | |000006f0| 74 68 65 20 66 69 72 73 | 74 20 63 68 61 72 61 63 |the firs|t charac| |00000700| 74 65 72 0d 20 20 20 20 | 20 20 20 20 20 20 66 6f |ter. | fo| |00000710| 6c 6c 6f 77 69 6e 67 20 | 74 68 65 20 73 75 62 73 |llowing |the subs| |00000720| 74 72 69 6e 67 2e 20 20 | 54 68 65 20 30 74 68 20 |tring. |The 0th | |00000730| 73 75 62 73 74 72 69 6e | 67 20 69 73 20 74 68 65 |substrin|g is the| |00000740| 20 73 75 62 73 74 72 69 | 6e 67 0d 20 20 20 20 20 | substri|ng. | |00000750| 20 20 20 20 20 6f 66 20 | 73 74 72 69 6e 67 20 74 | of |string t| |00000760| 68 61 74 20 6d 61 74 63 | 68 65 64 20 74 68 65 20 |hat matc|hed the | |00000770| 77 68 6f 6c 65 20 72 65 | 67 75 6c 61 72 20 65 78 |whole re|gular ex| |00000780| 70 72 65 73 73 69 6f 6e | 2e 20 20 54 68 65 0d 20 |pression|. The. | |00000790| 20 20 20 20 20 20 20 20 | 20 6f 74 68 65 72 73 20 | | others | |000007a0| 61 72 65 20 74 68 6f 73 | 65 20 73 75 62 73 74 72 |are thos|e substr| |000007b0| 69 6e 67 73 20 74 68 61 | 74 20 6d 61 74 63 68 65 |ings tha|t matche| |000007c0| 64 20 70 61 72 65 6e 74 | 68 65 73 69 7a 65 64 0d |d parent|hesized.| |000007d0| 20 20 20 20 20 20 20 20 | 20 20 65 78 70 72 65 73 | | expres| |000007e0| 73 69 6f 6e 73 20 77 69 | 74 68 69 6e 20 74 68 65 |sions wi|thin the| |000007f0| 20 72 65 67 75 6c 61 72 | 20 65 78 70 72 65 73 73 | regular| express| |00000800| 69 6f 6e 2c 20 77 69 74 | 68 0d 20 20 20 20 20 20 |ion, wit|h. | |00000810| 20 20 20 20 70 61 72 65 | 6e 74 68 65 73 69 7a 65 | pare|nthesize| |00000820| 64 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 6e 75 |d expres|sions nu| |00000830| 6d 62 65 72 65 64 20 69 | 6e 20 6c 65 66 74 2d 74 |mbered i|n left-t| |00000840| 6f 2d 72 69 67 68 74 20 | 6f 72 64 65 72 20 6f 66 |o-right |order of| |00000850| 0d 20 20 20 20 20 20 20 | 20 20 20 74 68 65 69 72 |. | their| |00000860| 20 6f 70 65 6e 69 6e 67 | 20 70 61 72 65 6e 74 68 | opening| parenth| |00000870| 65 73 65 73 2e 0d 0d 20 | 20 20 20 20 20 20 20 20 |eses... | | |00000880| 20 52 65 67 73 75 62 20 | 63 6f 70 69 65 73 20 73 | Regsub |copies s| |00000890| 6f 75 72 63 65 20 74 6f | 20 64 65 73 74 2c 20 6d |ource to| dest, m| |000008a0| 61 6b 69 6e 67 20 73 75 | 62 73 74 69 74 75 74 69 |aking su|bstituti| |000008b0| 6f 6e 73 20 61 63 63 6f | 72 64 69 6e 67 0d 20 20 |ons acco|rding. | |000008c0| 20 20 20 20 20 20 20 20 | 74 6f 20 74 68 65 20 6d | |to the m| |000008d0| 6f 73 74 20 72 65 63 65 | 6e 74 20 72 65 67 65 78 |ost rece|nt regex| |000008e0| 65 63 20 70 65 72 66 6f | 72 6d 65 64 20 75 73 69 |ec perfo|rmed usi| |000008f0| 6e 67 20 70 72 6f 67 2e | 20 20 45 61 63 68 0d 20 |ng prog.| Each. | |00000900| 20 20 20 20 20 20 20 20 | 20 69 6e 73 74 61 6e 63 | | instanc| |00000910| 65 20 6f 66 20 60 26 27 | 20 69 6e 20 73 6f 75 72 |e of `&'| in sour| |00000920| 63 65 20 69 73 20 72 65 | 70 6c 61 63 65 64 20 62 |ce is re|placed b| |00000930| 79 20 74 68 65 20 73 75 | 62 73 74 72 69 6e 67 0d |y the su|bstring.| |00000940| 20 20 20 20 20 20 20 20 | 20 20 69 6e 64 69 63 61 | | indica| |00000950| 74 65 64 20 62 79 20 73 | 74 61 72 74 70 5b 30 5d |ted by s|tartp[0]| |00000960| 20 61 6e 64 20 65 6e 64 | 70 5b 30 5d 2e 20 20 45 | and end|p[0]. E| |00000970| 61 63 68 20 69 6e 73 74 | 61 6e 63 65 20 6f 66 20 |ach inst|ance of | |00000980| 60 5c 6e 27 2c 0d 20 20 | 20 20 20 20 20 20 20 20 |`\n',. | | |00000990| 77 68 65 72 65 20 6e 20 | 69 73 20 61 20 64 69 67 |where n |is a dig| |000009a0| 69 74 2c 20 69 73 20 72 | 65 70 6c 61 63 65 64 20 |it, is r|eplaced | |000009b0| 62 79 20 74 68 65 20 73 | 75 62 73 74 72 69 6e 67 |by the s|ubstring| |000009c0| 20 69 6e 64 69 63 61 74 | 65 64 0d 20 20 20 20 20 | indicat|ed. | |000009d0| 20 20 20 20 20 62 79 20 | 73 74 61 72 74 70 5b 6e | by |startp[n| |000009e0| 5d 20 61 6e 64 20 65 6e | 64 70 5b 6e 5d 2e 20 20 |] and en|dp[n]. | |000009f0| 54 6f 20 67 65 74 20 61 | 20 6c 69 74 65 72 61 6c |To get a| literal| |00000a00| 20 60 26 27 20 6f 72 20 | 60 5c 6e 27 20 69 6e 74 | `&' or |`\n' int| |00000a10| 6f 0d 20 20 20 20 20 20 | 20 20 20 20 64 65 73 74 |o. | dest| |00000a20| 2c 20 70 72 65 66 69 78 | 20 69 74 20 77 69 74 68 |, prefix| it with| |00000a30| 20 60 5c 27 3b 20 74 6f | 20 67 65 74 20 61 20 6c | `\'; to| get a l| |00000a40| 69 74 65 72 61 6c 20 60 | 5c 27 20 70 72 65 63 65 |iteral `|\' prece| |00000a50| 64 69 6e 67 20 60 26 27 | 0d 20 20 20 20 20 20 20 |ding `&'|. | |00000a60| 20 20 20 6f 72 20 60 5c | 6e 27 2c 20 70 72 65 66 | or `\|n', pref| |00000a70| 69 78 20 69 74 20 77 69 | 74 68 20 61 6e 6f 74 68 |ix it wi|th anoth| |00000a80| 65 72 20 60 5c 27 2e 0d | 0d 20 20 20 20 20 20 20 |er `\'..|. | |00000a90| 20 20 20 52 65 67 65 72 | 72 6f 72 20 69 73 20 63 | Reger|ror is c| |00000aa0| 61 6c 6c 65 64 20 77 68 | 65 6e 65 76 65 72 20 61 |alled wh|enever a| |00000ab0| 6e 20 65 72 72 6f 72 20 | 69 73 20 64 65 74 65 63 |n error |is detec| |00000ac0| 74 65 64 20 69 6e 20 72 | 65 67 63 6f 6d 70 2c 0d |ted in r|egcomp,.| |00000ad0| 20 20 20 20 20 20 20 20 | 20 20 72 65 67 65 78 65 | | regexe| |00000ae0| 63 2c 20 6f 72 20 72 65 | 67 73 75 62 2e 20 20 54 |c, or re|gsub. T| |00000af0| 68 65 20 64 65 66 61 75 | 6c 74 20 72 65 67 65 72 |he defau|lt reger| |00000b00| 72 6f 72 20 77 72 69 74 | 65 73 20 74 68 65 20 73 |ror writ|es the s| |00000b10| 74 72 69 6e 67 0d 20 20 | 20 20 20 20 20 20 20 20 |tring. | | |00000b20| 6d 73 67 2c 20 77 69 74 | 68 20 61 20 73 75 69 74 |msg, wit|h a suit| |00000b30| 61 62 6c 65 20 69 6e 64 | 69 63 61 74 6f 72 20 6f |able ind|icator o| |00000b40| 66 20 6f 72 69 67 69 6e | 2c 20 6f 6e 20 74 68 65 |f origin|, on the| |00000b50| 20 73 74 61 6e 64 61 72 | 64 0d 20 20 20 20 20 20 | standar|d. | |00000b60| 20 20 20 20 65 72 72 6f | 72 20 6f 75 74 70 75 74 | erro|r output| |00000b70| 20 61 6e 64 20 69 6e 76 | 6f 6b 65 73 20 65 78 69 | and inv|okes exi| |00000b80| 74 28 32 29 2e 20 20 52 | 65 67 65 72 72 6f 72 20 |t(2). R|egerror | |00000b90| 63 61 6e 20 62 65 20 72 | 65 70 6c 61 63 65 64 0d |can be r|eplaced.| |00000ba0| 20 20 20 20 20 20 20 20 | 20 20 62 79 20 74 68 65 | | by the| |00000bb0| 20 75 73 65 72 20 69 66 | 20 6f 74 68 65 72 20 61 | user if| other a| |00000bc0| 63 74 69 6f 6e 73 20 61 | 72 65 20 64 65 73 69 72 |ctions a|re desir| |00000bd0| 61 62 6c 65 2e 0d 0d 20 | 20 20 20 20 52 45 47 55 |able... | REGU| |00000be0| 4c 41 52 20 45 58 50 52 | 45 53 53 49 4f 4e 20 53 |LAR EXPR|ESSION S| |00000bf0| 59 4e 54 41 58 0d 20 20 | 20 20 20 20 20 20 20 20 |YNTAX. | | |00000c00| 41 20 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |A regula|r expres| |00000c10| 73 69 6f 6e 20 69 73 20 | 7a 65 72 6f 20 6f 72 20 |sion is |zero or | |00000c20| 6d 6f 72 65 20 62 72 61 | 6e 63 68 65 73 2c 20 73 |more bra|nches, s| |00000c30| 65 70 61 72 61 74 65 64 | 20 62 79 0d 20 20 20 20 |eparated| by. | |00000c40| 20 20 20 20 20 20 60 7c | 27 2e 20 20 49 74 20 6d | `||'. It m| |00000c50| 61 74 63 68 65 73 20 61 | 6e 79 74 68 69 6e 67 20 |atches a|nything | |00000c60| 74 68 61 74 20 6d 61 74 | 63 68 65 73 20 6f 6e 65 |that mat|ches one| |00000c70| 20 6f 66 20 74 68 65 20 | 62 72 61 6e 63 68 65 73 | of the |branches| |00000c80| 2e 0d 0d 20 20 20 20 20 | 20 20 20 20 20 41 20 62 |... | A b| |00000c90| 72 61 6e 63 68 20 69 73 | 20 7a 65 72 6f 20 6f 72 |ranch is| zero or| |00000ca0| 20 6d 6f 72 65 20 70 69 | 65 63 65 73 2c 20 63 6f | more pi|eces, co| |00000cb0| 6e 63 61 74 65 6e 61 74 | 65 64 2e 20 20 49 74 20 |ncatenat|ed. It | |00000cc0| 6d 61 74 63 68 65 73 20 | 61 0d 20 20 20 20 20 20 |matches |a. | |00000cd0| 20 20 20 20 6d 61 74 63 | 68 20 66 6f 72 20 74 68 | matc|h for th| |00000ce0| 65 20 66 69 72 73 74 2c | 20 66 6f 6c 6c 6f 77 65 |e first,| followe| |00000cf0| 64 20 62 79 20 61 20 6d | 61 74 63 68 20 66 6f 72 |d by a m|atch for| |00000d00| 20 74 68 65 20 73 65 63 | 6f 6e 64 2c 0d 20 20 20 | the sec|ond,. | |00000d10| 20 20 20 20 20 20 20 65 | 74 63 2e 0d 0d 20 20 20 | e|tc... | |00000d20| 20 20 20 20 20 20 20 41 | 20 70 69 65 63 65 20 69 | A| piece i| |00000d30| 73 20 61 6e 20 61 74 6f | 6d 20 70 6f 73 73 69 62 |s an ato|m possib| |00000d40| 6c 79 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 60 |ly follo|wed by `| |00000d50| 2a 27 2c 20 60 2b 27 2c | 20 6f 72 20 60 3f 27 2e |*', `+',| or `?'.| |00000d60| 0d 20 20 20 20 20 20 20 | 20 20 20 41 6e 20 61 74 |. | An at| |00000d70| 6f 6d 20 66 6f 6c 6c 6f | 77 65 64 20 62 79 20 60 |om follo|wed by `| |00000d80| 2a 27 20 6d 61 74 63 68 | 65 73 20 61 20 73 65 71 |*' match|es a seq| |00000d90| 75 65 6e 63 65 20 6f 66 | 20 30 20 6f 72 20 6d 6f |uence of| 0 or mo| |00000da0| 72 65 0d 20 20 20 20 20 | 20 20 20 20 20 6d 61 74 |re. | mat| |00000db0| 63 68 65 73 20 6f 66 20 | 74 68 65 20 61 74 6f 6d |ches of |the atom| |00000dc0| 2e 20 20 41 6e 20 61 74 | 6f 6d 20 66 6f 6c 6c 6f |. An at|om follo| |00000dd0| 77 65 64 20 62 79 20 60 | 2b 27 20 6d 61 74 63 68 |wed by `|+' match| |00000de0| 65 73 20 61 0d 20 20 20 | 20 20 20 20 20 20 20 73 |es a. | s| |00000df0| 65 71 75 65 6e 63 65 20 | 6f 66 20 31 20 6f 72 20 |equence |of 1 or | |00000e00| 6d 6f 72 65 20 6d 61 74 | 63 68 65 73 20 6f 66 20 |more mat|ches of | |00000e10| 74 68 65 20 61 74 6f 6d | 2e 20 20 41 6e 20 61 74 |the atom|. An at| |00000e20| 6f 6d 20 66 6f 6c 6c 6f | 77 65 64 0d 20 20 20 20 |om follo|wed. | |00000e30| 20 20 20 20 20 20 62 79 | 20 60 3f 27 20 6d 61 74 | by| `?' mat| |00000e40| 63 68 65 73 20 61 20 6d | 61 74 63 68 20 6f 66 20 |ches a m|atch of | |00000e50| 74 68 65 20 61 74 6f 6d | 2c 20 6f 72 20 74 68 65 |the atom|, or the| |00000e60| 20 6e 75 6c 6c 20 73 74 | 72 69 6e 67 2e 0d 0d 20 | null st|ring... | |00000e70| 20 20 20 20 20 20 20 20 | 20 41 6e 20 61 74 6f 6d | | An atom| |00000e80| 20 69 73 20 61 20 72 65 | 67 75 6c 61 72 20 65 78 | is a re|gular ex| |00000e90| 70 72 65 73 73 69 6f 6e | 20 69 6e 20 70 61 72 65 |pression| in pare| |00000ea0| 6e 74 68 65 73 65 73 20 | 28 6d 61 74 63 68 69 6e |ntheses |(matchin| |00000eb0| 67 20 61 0d 20 20 20 20 | 20 20 20 20 20 20 6d 61 |g a. | ma| |00000ec0| 74 63 68 20 66 6f 72 20 | 74 68 65 20 72 65 67 75 |tch for |the regu| |00000ed0| 6c 61 72 20 65 78 70 72 | 65 73 73 69 6f 6e 29 2c |lar expr|ession),| |00000ee0| 20 61 20 72 61 6e 67 65 | 20 28 73 65 65 20 62 65 | a range| (see be| |00000ef0| 6c 6f 77 29 2c 20 60 2e | 27 0d 20 20 20 20 20 20 |low), `.|'. | |00000f00| 20 20 20 20 28 6d 61 74 | 63 68 69 6e 67 20 61 6e | (mat|ching an| |00000f10| 79 20 73 69 6e 67 6c 65 | 20 63 68 61 72 61 63 74 |y single| charact| |00000f20| 65 72 29 2c 20 60 5e 27 | 20 28 6d 61 74 63 68 69 |er), `^'| (matchi| |00000f30| 6e 67 20 74 68 65 20 6e | 75 6c 6c 0d 20 20 20 20 |ng the n|ull. | |00000f40| 20 20 20 20 20 20 73 74 | 72 69 6e 67 20 61 74 20 | st|ring at | |00000f50| 74 68 65 20 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 |the begi|nning of| |00000f60| 20 74 68 65 20 69 6e 70 | 75 74 20 73 74 72 69 6e | the inp|ut strin| |00000f70| 67 29 2c 20 60 24 27 20 | 28 6d 61 74 63 68 69 6e |g), `$' |(matchin| |00000f80| 67 0d 20 20 20 20 20 20 | 20 20 20 20 74 68 65 20 |g. | the | |00000f90| 6e 75 6c 6c 20 73 74 72 | 69 6e 67 20 61 74 20 74 |null str|ing at t| |00000fa0| 68 65 20 65 6e 64 20 6f | 66 20 74 68 65 20 69 6e |he end o|f the in| |00000fb0| 70 75 74 20 73 74 72 69 | 6e 67 29 2c 20 61 20 60 |put stri|ng), a `| |00000fc0| 5c 27 0d 20 20 20 20 20 | 20 20 20 20 20 66 6f 6c |\'. | fol| |00000fd0| 6c 6f 77 65 64 20 62 79 | 20 61 20 73 69 6e 67 6c |lowed by| a singl| |00000fe0| 65 20 63 68 61 72 61 63 | 74 65 72 20 28 6d 61 74 |e charac|ter (mat| |00000ff0| 63 68 69 6e 67 20 74 68 | 61 74 20 63 68 61 72 61 |ching th|at chara| |00001000| 63 74 65 72 29 2c 20 6f | 72 0d 20 20 20 20 20 20 |cter), o|r. | |00001010| 20 20 20 20 61 20 73 69 | 6e 67 6c 65 20 63 68 61 | a si|ngle cha| |00001020| 72 61 63 74 65 72 20 77 | 69 74 68 20 6e 6f 20 6f |racter w|ith no o| |00001030| 74 68 65 72 20 73 69 67 | 6e 69 66 69 63 61 6e 63 |ther sig|nificanc| |00001040| 65 20 28 6d 61 74 63 68 | 69 6e 67 20 74 68 61 74 |e (match|ing that| |00001050| 0d 20 20 20 20 20 20 20 | 20 20 20 63 68 61 72 61 |. | chara| |00001060| 63 74 65 72 29 2e 0d 0d | 20 20 20 20 20 20 20 20 |cter)...| | |00001070| 20 20 41 20 72 61 6e 67 | 65 20 69 73 20 61 20 73 | A rang|e is a s| |00001080| 65 71 75 65 6e 63 65 20 | 6f 66 20 63 68 61 72 61 |equence |of chara| |00001090| 63 74 65 72 73 20 65 6e | 63 6c 6f 73 65 64 20 69 |cters en|closed i| |000010a0| 6e 20 60 5b 5d 27 2e 20 | 20 49 74 0d 20 20 20 20 |n `[]'. | It. | |000010b0| 20 20 20 20 20 20 6e 6f | 72 6d 61 6c 6c 79 20 6d | no|rmally m| |000010c0| 61 74 63 68 65 73 20 61 | 6e 79 20 73 69 6e 67 6c |atches a|ny singl| |000010d0| 65 20 63 68 61 72 61 63 | 74 65 72 20 66 72 6f 6d |e charac|ter from| |000010e0| 20 74 68 65 20 73 65 71 | 75 65 6e 63 65 2e 20 20 | the seq|uence. | |000010f0| 49 66 0d 20 20 20 20 20 | 20 20 20 20 20 74 68 65 |If. | the| |00001100| 20 73 65 71 75 65 6e 63 | 65 20 62 65 67 69 6e 73 | sequenc|e begins| |00001110| 20 77 69 74 68 20 60 5e | 27 2c 20 69 74 20 6d 61 | with `^|', it ma| |00001120| 74 63 68 65 73 20 61 6e | 79 20 73 69 6e 67 6c 65 |tches an|y single| |00001130| 0d 20 20 20 20 20 20 20 | 20 20 20 63 68 61 72 61 |. | chara| |00001140| 63 74 65 72 20 6e 6f 74 | 20 66 72 6f 6d 20 74 68 |cter not| from th| |00001150| 65 20 72 65 73 74 20 6f | 66 20 74 68 65 20 73 65 |e rest o|f the se| |00001160| 71 75 65 6e 63 65 2e 20 | 20 49 66 20 74 77 6f 0d |quence. | If two.| |00001170| 20 20 20 20 20 20 20 20 | 20 20 63 68 61 72 61 63 | | charac| |00001180| 74 65 72 73 20 69 6e 20 | 74 68 65 20 73 65 71 75 |ters in |the sequ| |00001190| 65 6e 63 65 20 61 72 65 | 20 73 65 70 61 72 61 74 |ence are| separat| |000011a0| 65 64 20 62 79 20 60 2d | 27 2c 20 74 68 69 73 20 |ed by `-|', this | |000011b0| 69 73 0d 20 20 20 20 20 | 20 20 20 20 20 73 68 6f |is. | sho| |000011c0| 72 74 68 61 6e 64 20 66 | 6f 72 20 74 68 65 20 66 |rthand f|or the f| |000011d0| 75 6c 6c 20 6c 69 73 74 | 20 6f 66 20 41 53 43 49 |ull list| of ASCI| |000011e0| 49 20 63 68 61 72 61 63 | 74 65 72 73 20 62 65 74 |I charac|ters bet| |000011f0| 77 65 65 6e 20 74 68 65 | 6d 0d 20 20 20 20 20 20 |ween the|m. | |00001200| 20 20 20 20 28 65 2e 67 | 2e 20 60 5b 30 2d 39 5d | (e.g|. `[0-9]| |00001210| 27 20 6d 61 74 63 68 65 | 73 20 61 6e 79 20 64 65 |' matche|s any de| |00001220| 63 69 6d 61 6c 20 64 69 | 67 69 74 29 2e 20 20 54 |cimal di|git). T| |00001230| 6f 20 69 6e 63 6c 75 64 | 65 20 61 0d 20 20 20 20 |o includ|e a. | |00001240| 20 20 20 20 20 20 6c 69 | 74 65 72 61 6c 20 60 5d | li|teral `]| |00001250| 27 20 69 6e 20 74 68 65 | 20 73 65 71 75 65 6e 63 |' in the| sequenc| |00001260| 65 2c 20 6d 61 6b 65 20 | 69 74 20 74 68 65 20 66 |e, make |it the f| |00001270| 69 72 73 74 20 63 68 61 | 72 61 63 74 65 72 0d 20 |irst cha|racter. | |00001280| 20 20 20 20 20 20 20 20 | 20 28 66 6f 6c 6c 6f 77 | | (follow| |00001290| 69 6e 67 20 61 20 70 6f | 73 73 69 62 6c 65 20 60 |ing a po|ssible `| |000012a0| 5e 27 29 2e 20 20 54 6f | 20 69 6e 63 6c 75 64 65 |^'). To| include| |000012b0| 20 61 20 6c 69 74 65 72 | 61 6c 20 60 2d 27 2c 20 | a liter|al `-', | |000012c0| 6d 61 6b 65 0d 20 20 20 | 20 20 20 20 20 20 20 69 |make. | i| |000012d0| 74 20 74 68 65 20 66 69 | 72 73 74 20 6f 72 20 6c |t the fi|rst or l| |000012e0| 61 73 74 20 63 68 61 72 | 61 63 74 65 72 2e 0d 0d |ast char|acter...| |000012f0| 20 20 20 20 20 41 4d 42 | 49 47 55 49 54 59 0d 20 | AMB|IGUITY. | |00001300| 20 20 20 20 20 20 20 20 | 20 49 66 20 61 20 72 65 | | If a re| |00001310| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression| |00001320| 20 63 6f 75 6c 64 20 6d | 61 74 63 68 20 74 77 6f | could m|atch two| |00001330| 20 64 69 66 66 65 72 65 | 6e 74 20 70 61 72 74 73 | differe|nt parts| |00001340| 20 6f 66 0d 20 20 20 20 | 20 20 20 20 20 20 74 68 | of. | th| |00001350| 65 20 69 6e 70 75 74 20 | 73 74 72 69 6e 67 2c 20 |e input |string, | |00001360| 69 74 20 77 69 6c 6c 20 | 6d 61 74 63 68 20 74 68 |it will |match th| |00001370| 65 20 6f 6e 65 20 77 68 | 69 63 68 20 62 65 67 69 |e one wh|ich begi| |00001380| 6e 73 0d 20 20 20 20 20 | 20 20 20 20 20 65 61 72 |ns. | ear| |00001390| 6c 69 65 73 74 2e 20 20 | 49 66 20 62 6f 74 68 20 |liest. |If both | |000013a0| 62 65 67 69 6e 20 69 6e | 20 74 68 65 20 73 61 6d |begin in| the sam| |000013b0| 65 20 70 6c 61 63 65 20 | 20 20 20 62 75 74 20 6d |e place | but m| |000013c0| 61 74 63 68 0d 20 20 20 | 20 20 20 20 20 20 20 64 |atch. | d| |000013d0| 69 66 66 65 72 65 6e 74 | 20 6c 65 6e 67 74 68 73 |ifferent| lengths| |000013e0| 2c 20 6f 72 20 6d 61 74 | 63 68 20 74 68 65 20 73 |, or mat|ch the s| |000013f0| 61 6d 65 20 6c 65 6e 67 | 74 68 20 69 6e 20 64 69 |ame leng|th in di| |00001400| 66 66 65 72 65 6e 74 0d | 20 20 20 20 20 20 20 20 |fferent.| | |00001410| 20 20 77 61 79 73 2c 20 | 6c 69 66 65 20 67 65 74 | ways, |life get| |00001420| 73 20 6d 65 73 73 69 65 | 72 2c 20 61 73 20 66 6f |s messie|r, as fo| |00001430| 6c 6c 6f 77 73 2e 0d 0d | 20 20 20 20 20 20 20 20 |llows...| | |00001440| 20 20 49 6e 20 67 65 6e | 65 72 61 6c 2c 20 74 68 | In gen|eral, th| |00001450| 65 20 70 6f 73 73 69 62 | 69 6c 69 74 69 65 73 20 |e possib|ilities | |00001460| 69 6e 20 61 20 6c 69 73 | 74 20 6f 66 20 62 72 61 |in a lis|t of bra| |00001470| 6e 63 68 65 73 20 61 72 | 65 0d 20 20 20 20 20 20 |nches ar|e. | |00001480| 20 20 20 20 63 6f 6e 73 | 69 64 65 72 65 64 20 69 | cons|idered i| |00001490| 6e 20 6c 65 66 74 2d 74 | 6f 2d 72 69 67 68 74 20 |n left-t|o-right | |000014a0| 6f 72 64 65 72 2c 20 74 | 68 65 20 70 6f 73 73 69 |order, t|he possi| |000014b0| 62 69 6c 69 74 69 65 73 | 20 66 6f 72 0d 20 20 20 |bilities| for. | |000014c0| 20 20 20 20 20 20 20 60 | 2a 27 2c 20 60 2b 27 2c | `|*', `+',| |000014d0| 20 61 6e 64 20 60 3f 27 | 20 61 72 65 20 63 6f 6e | and `?'| are con| |000014e0| 73 69 64 65 72 65 64 20 | 6c 6f 6e 67 65 73 74 2d |sidered |longest-| |000014f0| 66 69 72 73 74 2c 20 6e | 65 73 74 65 64 0d 20 20 |first, n|ested. | |00001500| 20 20 20 20 20 20 20 20 | 63 6f 6e 73 74 72 75 63 | |construc| |00001510| 74 73 20 61 72 65 20 63 | 6f 6e 73 69 64 65 72 65 |ts are c|onsidere| |00001520| 64 20 66 72 6f 6d 20 74 | 68 65 20 6f 75 74 65 72 |d from t|he outer| |00001530| 6d 6f 73 74 20 69 6e 2c | 20 61 6e 64 0d 20 20 20 |most in,| and. | |00001540| 20 20 20 20 20 20 20 63 | 6f 6e 63 61 74 65 6e 61 | c|oncatena| |00001550| 74 65 64 20 63 6f 6e 73 | 74 72 75 63 74 73 20 61 |ted cons|tructs a| |00001560| 72 65 20 63 6f 6e 73 69 | 64 65 72 65 64 20 6c 65 |re consi|dered le| |00001570| 66 74 6d 6f 73 74 2d 66 | 69 72 73 74 2e 20 20 54 |ftmost-f|irst. T| |00001580| 68 65 0d 20 20 20 20 20 | 20 20 20 20 20 6d 61 74 |he. | mat| |00001590| 63 68 20 74 68 61 74 20 | 77 69 6c 6c 20 62 65 20 |ch that |will be | |000015a0| 63 68 6f 73 65 6e 20 69 | 73 20 74 68 65 20 6f 6e |chosen i|s the on| |000015b0| 65 20 74 68 61 74 20 75 | 73 65 73 20 74 68 65 20 |e that u|ses the | |000015c0| 65 61 72 6c 69 65 73 74 | 0d 20 20 20 20 20 20 20 |earliest|. | |000015d0| 20 20 20 70 6f 73 73 69 | 62 69 6c 69 74 79 20 69 | possi|bility i| |000015e0| 6e 20 74 68 65 20 66 69 | 72 73 74 20 63 68 6f 69 |n the fi|rst choi| |000015f0| 63 65 20 74 68 61 74 20 | 68 61 73 20 74 6f 20 62 |ce that |has to b| |00001600| 65 20 6d 61 64 65 2e 20 | 20 49 66 0d 20 20 20 20 |e made. | If. | |00001610| 20 20 20 20 20 20 74 68 | 65 72 65 20 69 73 20 6d | th|ere is m| |00001620| 6f 72 65 20 74 68 61 6e | 20 6f 6e 65 20 63 68 6f |ore than| one cho| |00001630| 69 63 65 2c 20 74 68 65 | 20 6e 65 78 74 20 77 69 |ice, the| next wi| |00001640| 6c 6c 20 62 65 20 6d 61 | 64 65 20 69 6e 20 74 68 |ll be ma|de in th| |00001650| 65 0d 20 20 20 20 20 20 | 20 20 20 20 73 61 6d 65 |e. | same| |00001660| 20 6d 61 6e 6e 65 72 20 | 28 65 61 72 6c 69 65 73 | manner |(earlies| |00001670| 74 20 70 6f 73 73 69 62 | 69 6c 69 74 79 29 20 73 |t possib|ility) s| |00001680| 75 62 6a 65 63 74 20 74 | 6f 20 74 68 65 20 64 65 |ubject t|o the de| |00001690| 63 69 73 69 6f 6e 0d 20 | 20 20 20 20 20 20 20 20 |cision. | | |000016a0| 20 6f 6e 20 74 68 65 20 | 66 69 72 73 74 20 63 68 | on the |first ch| |000016b0| 6f 69 63 65 2e 20 20 41 | 6e 64 20 73 6f 20 66 6f |oice. A|nd so fo| |000016c0| 72 74 68 2e 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |rth... | | |000016d0| 46 6f 72 20 65 78 61 6d | 70 6c 65 2c 20 60 28 61 |For exam|ple, `(a| |000016e0| 62 7c 61 29 62 2a 63 27 | 20 63 6f 75 6c 64 20 6d |b|a)b*c'| could m| |000016f0| 61 74 63 68 20 60 61 62 | 63 27 20 69 6e 20 6f 6e |atch `ab|c' in on| |00001700| 65 20 6f 66 20 74 77 6f | 0d 20 20 20 20 20 20 20 |e of two|. | |00001710| 20 20 20 77 61 79 73 2e | 20 20 54 68 65 20 66 69 | ways.| The fi| |00001720| 72 73 74 20 63 68 6f 69 | 63 65 20 69 73 20 62 65 |rst choi|ce is be| |00001730| 74 77 65 65 6e 20 60 61 | 62 27 20 61 6e 64 20 60 |tween `a|b' and `| |00001740| 61 27 3b 20 73 69 6e 63 | 65 20 60 61 62 27 0d 20 |a'; sinc|e `ab'. | |00001750| 20 20 20 20 20 20 20 20 | 20 69 73 20 65 61 72 6c | | is earl| |00001760| 69 65 72 2c 20 61 6e 64 | 20 64 6f 65 73 20 6c 65 |ier, and| does le| |00001770| 61 64 20 74 6f 20 61 20 | 73 75 63 63 65 73 73 66 |ad to a |successf| |00001780| 75 6c 20 6f 76 65 72 61 | 6c 6c 20 6d 61 74 63 68 |ul overa|ll match| |00001790| 2c 20 69 74 0d 20 20 20 | 20 20 20 20 20 20 20 69 |, it. | i| |000017a0| 73 20 63 68 6f 73 65 6e | 2e 20 20 53 69 6e 63 65 |s chosen|. Since| |000017b0| 20 74 68 65 20 60 62 27 | 20 69 73 20 61 6c 72 65 | the `b'| is alre| |000017c0| 61 64 79 20 73 70 6f 6b | 65 6e 20 66 6f 72 2c 20 |ady spok|en for, | |000017d0| 74 68 65 20 60 62 2a 27 | 0d 20 20 20 20 20 20 20 |the `b*'|. | |000017e0| 20 20 20 6d 75 73 74 20 | 6d 61 74 63 68 20 69 74 | must |match it| |000017f0| 73 20 6c 61 73 74 20 70 | 6f 73 73 69 62 69 6c 69 |s last p|ossibili| |00001800| 74 79 2d 74 68 65 20 65 | 6d 70 74 79 20 73 74 72 |ty-the e|mpty str| |00001810| 69 6e 67 2d 73 69 6e 63 | 65 20 69 74 0d 20 20 20 |ing-sinc|e it. | |00001820| 20 20 20 20 20 20 20 6d | 75 73 74 20 72 65 73 70 | m|ust resp| |00001830| 65 63 74 20 74 68 65 20 | 65 61 72 6c 69 65 72 20 |ect the |earlier | |00001840| 63 68 6f 69 63 65 2e 0d | 0d 20 20 20 20 20 20 20 |choice..|. | |00001850| 20 20 20 49 6e 20 74 68 | 65 20 70 61 72 74 69 63 | In th|e partic| |00001860| 75 6c 61 72 20 63 61 73 | 65 20 77 68 65 72 65 20 |ular cas|e where | |00001870| 6e 6f 20 60 7c 27 73 20 | 61 72 65 20 70 72 65 73 |no `|'s |are pres| |00001880| 65 6e 74 20 61 6e 64 20 | 74 68 65 72 65 0d 20 20 |ent and |there. | |00001890| 20 20 20 20 20 20 20 20 | 69 73 20 6f 6e 6c 79 20 | |is only | |000018a0| 6f 6e 65 20 60 2a 27 2c | 20 60 2b 27 2c 20 6f 72 |one `*',| `+', or| |000018b0| 20 60 3f 27 2c 20 74 68 | 65 20 6e 65 74 20 65 66 | `?', th|e net ef| |000018c0| 66 65 63 74 20 69 73 20 | 74 68 61 74 20 74 68 65 |fect is |that the| |000018d0| 0d 20 20 20 20 20 20 20 | 20 20 20 6c 6f 6e 67 65 |. | longe| |000018e0| 73 74 20 70 6f 73 73 69 | 62 6c 65 20 6d 61 74 63 |st possi|ble matc| |000018f0| 68 20 77 69 6c 6c 20 62 | 65 20 63 68 6f 73 65 6e |h will b|e chosen| |00001900| 2e 20 20 53 6f 20 60 61 | 62 2a 27 2c 20 70 72 65 |. So `a|b*', pre| |00001910| 73 65 6e 74 65 64 0d 20 | 20 20 20 20 20 20 20 20 |sented. | | |00001920| 20 77 69 74 68 20 60 78 | 61 62 62 62 62 79 27 2c | with `x|abbbby',| |00001930| 20 77 69 6c 6c 20 6d 61 | 74 63 68 20 60 61 62 62 | will ma|tch `abb| |00001940| 62 62 27 2e 20 20 4e 6f | 74 65 20 74 68 61 74 20 |bb'. No|te that | |00001950| 69 66 20 60 61 62 2a 27 | 20 69 73 0d 20 20 20 20 |if `ab*'| is. | |00001960| 20 20 20 20 20 20 74 72 | 69 65 64 20 61 67 61 69 | tr|ied agai| |00001970| 6e 73 74 20 60 78 61 62 | 79 61 62 62 62 7a 27 2c |nst `xab|yabbbz',| |00001980| 20 69 74 20 77 69 6c 6c | 20 6d 61 74 63 68 20 60 | it will| match `| |00001990| 61 62 27 20 6a 75 73 74 | 20 61 66 74 65 72 0d 20 |ab' just| after. | |000019a0| 20 20 20 20 20 20 20 20 | 20 60 78 27 2c 20 64 75 | | `x', du| |000019b0| 65 20 74 6f 20 74 68 65 | 20 62 65 67 69 6e 73 2d |e to the| begins-| |000019c0| 65 61 72 6c 69 65 73 74 | 20 72 75 6c 65 2e 20 20 |earliest| rule. | |000019d0| 28 49 6e 20 65 66 66 65 | 63 74 2c 20 74 68 65 0d |(In effe|ct, the.| |000019e0| 20 20 20 20 20 20 20 20 | 20 20 64 65 63 69 73 69 | | decisi| |000019f0| 6f 6e 20 6f 6e 20 77 68 | 65 72 65 20 74 6f 20 73 |on on wh|ere to s| |00001a00| 74 61 72 74 20 74 68 65 | 20 6d 61 74 63 68 20 69 |tart the| match i| |00001a10| 73 20 74 68 65 20 66 69 | 72 73 74 20 63 68 6f 69 |s the fi|rst choi| |00001a20| 63 65 20 74 6f 0d 20 20 | 20 20 20 20 20 20 20 20 |ce to. | | |00001a30| 62 65 20 6d 61 64 65 2c | 20 68 65 6e 63 65 20 73 |be made,| hence s| |00001a40| 75 62 73 65 71 75 65 6e | 74 20 63 68 6f 69 63 65 |ubsequen|t choice| |00001a50| 73 20 6d 75 73 74 20 72 | 65 73 70 65 63 74 20 69 |s must r|espect i| |00001a60| 74 20 65 76 65 6e 20 69 | 66 0d 20 20 20 20 20 20 |t even i|f. | |00001a70| 20 20 20 20 74 68 69 73 | 20 6c 65 61 64 73 20 74 | this| leads t| |00001a80| 68 65 6d 20 74 6f 20 6c | 65 73 73 2d 70 72 65 66 |hem to l|ess-pref| |00001a90| 65 72 72 65 64 20 61 6c | 74 65 72 6e 61 74 69 76 |erred al|ternativ| |00001aa0| 65 73 2e 29 0d 0d 09 09 | 20 20 49 6e 20 61 64 64 |es.)....| In add| |00001ab0| 69 74 69 6f 6e 2c 20 5c | 77 20 6d 61 74 63 68 65 |ition, \|w matche| |00001ac0| 73 20 61 6e 20 61 6c 70 | 68 61 6e 75 6d 65 72 69 |s an alp|hanumeri| |00001ad0| 63 20 63 68 61 72 61 63 | 74 65 72 20 28 69 6e 63 |c charac|ter (inc| |00001ae0| 6c 75 64 69 6e 67 20 22 | 5f 22 29 20 0d 09 09 20 |luding "|_") ... | |00001af0| 20 61 6e 64 20 5c 57 20 | 61 20 6e 6f 6e 61 6c 70 | and \W |a nonalp| |00001b00| 68 61 6e 75 6d 65 72 69 | 63 2e 20 57 6f 72 64 20 |hanumeri|c. Word | |00001b10| 62 6f 75 6e 64 61 72 69 | 65 73 20 6d 61 79 20 62 |boundari|es may b| |00001b20| 65 20 6d 61 74 63 68 65 | 64 20 62 79 20 5c 62 2c |e matche|d by \b,| |00001b30| 20 0d 09 09 20 20 61 6e | 64 20 6e 6f 6e 2d 62 6f | ... an|d non-bo| |00001b40| 75 6e 64 61 72 69 65 73 | 20 62 79 20 5c 42 2e 20 |undaries| by \B. | |00001b50| 41 20 77 68 69 2d 20 74 | 65 73 70 61 63 65 20 63 |A whi- t|espace c| |00001b60| 68 61 72 61 63 74 65 72 | 20 69 73 20 6d 61 74 63 |haracter| is matc| |00001b70| 68 65 64 20 62 79 20 0d | 09 09 20 20 5c 73 2c 20 |hed by .|.. \s, | |00001b80| 6e 6f 6e 2d 77 68 69 74 | 65 73 70 61 63 65 20 62 |non-whit|espace b| |00001b90| 79 20 5c 53 2e 20 41 20 | 6e 75 6d 65 72 69 63 20 |y \S. A |numeric | |00001ba0| 63 68 61 72 61 63 74 65 | 72 20 69 73 20 6d 61 74 |characte|r is mat| |00001bb0| 63 68 65 64 20 62 79 20 | 5c 64 2c 20 0d 09 09 20 |ched by |\d, ... | |00001bc0| 20 6e 6f 6e 2d 6e 75 6d | 65 72 69 63 20 62 79 20 | non-num|eric by | |00001bd0| 5c 44 2e 20 59 6f 75 20 | 6d 61 79 20 75 73 65 20 |\D. You |may use | |00001be0| 5c 77 2c 20 5c 73 20 61 | 6e 64 20 5c 64 20 77 69 |\w, \s a|nd \d wi| |00001bf0| 74 68 69 6e 20 63 68 61 | 72 61 63 74 65 72 20 0d |thin cha|racter .| |00001c00| 09 09 20 20 63 6c 61 73 | 73 65 73 2e 0d 09 09 20 |.. clas|ses.... | |00001c10| 20 0d 09 09 20 20 54 68 | 65 20 63 6c 61 73 73 20 | ... Th|e class | |00001c20| 6f 66 20 63 68 61 72 61 | 63 74 65 72 20 72 65 63 |of chara|cter rec| |00001c30| 6f 67 6e 69 7a 65 64 20 | 62 79 20 5c 77 20 28 61 |ognized |by \w (a| |00001c40| 6e 64 20 68 65 6e 63 65 | 20 6e 6f 74 20 72 65 63 |nd hence| not rec| |00001c50| 6f 67 6e 69 7a 65 64 20 | 0d 09 09 20 20 62 79 20 |ognized |... by | |00001c60| 5c 57 29 2c 20 63 61 6e | 20 62 65 20 61 75 67 6d |\W), can| be augm| |00001c70| 65 6e 74 65 64 20 76 69 | 61 20 74 68 65 20 27 61 |ented vi|a the 'a| |00001c80| 64 64 41 6c 70 68 61 43 | 68 61 72 73 27 20 63 6f |ddAlphaC|hars' co| |00001c90| 6d 6d 61 6e 64 2e 0d 0d | 20 20 20 20 20 44 49 41 |mmand...| DIA| |00001ca0| 47 4e 4f 53 54 49 43 53 | 0d 20 20 20 20 20 20 20 |GNOSTICS|. | |00001cb0| 20 20 20 52 65 67 63 6f | 6d 70 20 72 65 74 75 72 | Regco|mp retur| |00001cc0| 6e 73 20 4e 55 4c 4c 20 | 66 6f 72 20 61 20 66 61 |ns NULL |for a fa| |00001cd0| 69 6c 75 72 65 20 28 72 | 65 67 65 72 72 6f 72 20 |ilure (r|egerror | |00001ce0| 70 65 72 6d 69 74 74 69 | 6e 67 29 2c 0d 20 20 20 |permitti|ng),. | |00001cf0| 20 20 20 20 20 20 20 77 | 68 65 72 65 20 66 61 69 | w|here fai| |00001d00| 6c 75 72 65 73 20 61 72 | 65 20 73 79 6e 74 61 78 |lures ar|e syntax| |00001d10| 20 65 72 72 6f 72 73 2c | 20 65 78 63 65 65 64 69 | errors,| exceedi| |00001d20| 6e 67 20 69 6d 70 6c 65 | 6d 65 6e 74 61 74 69 6f |ng imple|mentatio| |00001d30| 6e 0d 20 20 20 20 20 20 | 20 20 20 20 6c 69 6d 69 |n. | limi| |00001d40| 74 73 2c 20 6f 72 20 61 | 70 70 6c 79 69 6e 67 20 |ts, or a|pplying | |00001d50| 60 2b 27 20 6f 72 20 60 | 2a 27 20 74 6f 20 61 20 |`+' or `|*' to a | |00001d60| 70 6f 73 73 69 62 6c 79 | 2d 6e 75 6c 6c 20 6f 70 |possibly|-null op| |00001d70| 65 72 61 6e 64 2e 0d 0d | 20 20 20 20 20 48 49 53 |erand...| HIS| |00001d80| 54 4f 52 59 0d 20 20 20 | 20 20 20 20 20 20 20 42 |TORY. | B| |00001d90| 6f 74 68 20 63 6f 64 65 | 20 61 6e 64 20 6d 61 6e |oth code| and man| |00001da0| 75 61 6c 20 70 61 67 65 | 20 77 65 72 65 20 77 72 |ual page| were wr| |00001db0| 69 74 74 65 6e 20 61 74 | 20 55 20 6f 66 20 54 2e |itten at| U of T.| |00001dc0| 20 20 54 68 65 79 20 61 | 72 65 0d 20 20 20 20 20 | They a|re. | |00001dd0| 20 20 20 20 20 69 6e 74 | 65 6e 64 65 64 20 74 6f | int|ended to| |00001de0| 20 62 65 20 63 6f 6d 70 | 61 74 69 62 6c 65 20 77 | be comp|atible w| |00001df0| 69 74 68 20 74 68 65 20 | 42 65 6c 6c 20 56 38 20 |ith the |Bell V8 | |00001e00| 72 65 67 65 78 70 28 33 | 29 2c 20 62 75 74 0d 20 |regexp(3|), but. | |00001e10| 20 20 20 20 20 20 20 20 | 20 61 72 65 20 6e 6f 74 | | are not| |00001e20| 20 64 65 72 69 76 65 64 | 20 66 72 6f 6d 20 42 65 | derived| from Be| |00001e30| 6c 6c 20 63 6f 64 65 2e | 0d 0d 20 20 20 20 20 42 |ll code.|.. B| |00001e40| 55 47 53 0d 20 20 20 20 | 20 20 20 20 20 20 45 6d |UGS. | Em| |00001e50| 70 74 79 20 62 72 61 6e | 63 68 65 73 20 61 6e 64 |pty bran|ches and| |00001e60| 20 65 6d 70 74 79 20 72 | 65 67 75 6c 61 72 20 65 | empty r|egular e| |00001e70| 78 70 72 65 73 73 69 6f | 6e 73 20 61 72 65 20 6e |xpressio|ns are n| |00001e80| 6f 74 0d 20 20 20 20 20 | 20 20 20 20 20 70 6f 72 |ot. | por| |00001e90| 74 61 62 6c 65 20 74 6f | 20 56 38 2e 0d 0d 20 20 |table to| V8... | |00001ea0| 20 20 20 20 20 20 20 20 | 54 68 65 20 72 65 73 74 | |The rest| |00001eb0| 72 69 63 74 69 6f 6e 20 | 61 67 61 69 6e 73 74 20 |riction |against | |00001ec0| 61 70 70 6c 79 69 6e 67 | 20 60 2a 27 20 6f 72 20 |applying| `*' or | |00001ed0| 60 2b 27 20 74 6f 20 61 | 20 70 6f 73 73 69 62 6c |`+' to a| possibl| |00001ee0| 79 2d 0d 20 20 20 20 20 | 20 20 20 20 20 6e 75 6c |y-. | nul| |00001ef0| 6c 20 6f 70 65 72 61 6e | 64 20 69 73 20 61 6e 20 |l operan|d is an | |00001f00| 61 72 74 69 66 61 63 74 | 20 6f 66 20 74 68 65 20 |artifact| of the | |00001f10| 73 69 6d 70 6c 69 73 74 | 69 63 0d 20 20 20 20 20 |simplist|ic. | |00001f20| 20 20 20 20 20 69 6d 70 | 6c 65 6d 65 6e 74 61 74 | imp|lementat| |00001f30| 69 6f 6e 2e 0d 0d 20 20 | 20 20 20 20 20 20 20 20 |ion... | | |00001f40| 44 6f 65 73 20 6e 6f 74 | 20 73 75 70 70 6f 72 74 |Does not| support| |00001f50| 20 65 67 72 65 70 27 73 | 20 6e 65 77 6c 69 6e 65 | egrep's| newline| |00001f60| 2d 73 65 70 61 72 61 74 | 65 64 20 62 72 61 6e 63 |-separat|ed branc| |00001f70| 68 65 73 3b 20 6e 65 69 | 74 68 65 72 0d 20 20 20 |hes; nei|ther. | |00001f80| 20 20 20 20 20 20 20 64 | 6f 65 73 20 74 68 65 20 | d|oes the | |00001f90| 56 38 20 72 65 67 65 78 | 70 28 33 29 2c 20 74 68 |V8 regex|p(3), th| |00001fa0| 6f 75 67 68 2e 0d 0d 20 | 20 20 20 20 20 20 20 20 |ough... | | |00001fb0| 20 44 75 65 20 74 6f 20 | 65 6d 70 68 61 73 69 73 | Due to |emphasis| |00001fc0| 20 6f 6e 20 63 6f 6d 70 | 61 63 74 6e 65 73 73 20 | on comp|actness | |00001fd0| 61 6e 64 20 73 69 6d 70 | 6c 69 63 69 74 79 2c 20 |and simp|licity, | |00001fe0| 69 74 27 73 20 6e 6f 74 | 0d 20 20 20 20 20 20 20 |it's not|. | |00001ff0| 20 20 20 73 74 72 69 6b | 69 6e 67 6c 79 20 66 61 | strik|ingly fa| |00002000| 73 74 2e 20 20 49 74 20 | 64 6f 65 73 20 67 69 76 |st. It |does giv| |00002010| 65 20 73 70 65 63 69 61 | 6c 20 61 74 74 65 6e 74 |e specia|l attent| |00002020| 69 6f 6e 20 74 6f 20 68 | 61 6e 64 6c 69 6e 67 0d |ion to h|andling.| |00002030| 20 20 20 20 20 20 20 20 | 20 20 73 69 6d 70 6c 65 | | simple| |00002040| 20 63 61 73 65 73 20 71 | 75 69 63 6b 6c 79 2e 0d | cases q|uickly..| |00002050| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002060| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002070| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |00002080| 00 00 01 00 00 00 04 30 | 00 00 03 30 00 00 00 45 |.......0|...0...E| |00002090| 3b 0d 65 78 74 65 72 6e | 20 63 68 61 72 09 09 09 |;.extern| char...| |000020a0| 2a 70 72 6f 6d 70 74 53 | 74 72 53 74 61 72 74 3b |*promptS|trStart;| |000020b0| 13 52 65 67 75 6c 61 72 | 20 45 78 70 72 65 73 73 |.Regular| Express| |000020c0| 69 6f 6e 73 02 00 00 00 | 54 45 58 54 41 4c 46 41 |ions....|TEXTALFA| |000020d0| 00 00 54 45 58 54 41 4c | 46 41 01 00 01 73 00 00 |..TEXTAL|FA...s..| |000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........| |000020f0| 00 00 a9 a2 6a 9e 00 00 | 1f d0 00 00 04 75 20 75 |....j...|.....u u| |00002100| 6e 73 69 67 6e 65 64 20 | 63 68 61 72 09 09 09 73 |nsigned |char...s| |00002110| 65 61 72 63 68 53 74 72 | 5b 5d 2c 20 72 65 70 6c |earchStr|[], repl| |00002120| 61 63 65 53 74 72 5b 5d | 3b 0d 65 78 74 65 72 6e |aceStr[]|;.extern| |00002130| 20 63 68 61 72 09 09 09 | 2a 72 65 70 6c 61 63 65 | char...|*replace| |00002140| 54 65 78 74 3b 0d 65 78 | 74 65 72 6e 20 69 6e 74 |Text;.ex|tern int| |00002150| 09 09 09 6c 61 73 74 57 | 61 73 59 61 6e 6b 3b 0d |...lastW|asYank;.| |00002160| 65 78 74 65 72 6e 20 69 | 6e 74 09 09 09 78 5f 70 |extern i|nt...x_p| |00002170| 72 65 66 69 78 5f 63 6f | 75 6e 74 3b 0d 65 78 74 |refix_co|unt;.ext| |00002180| 00 00 02 e0 01 d0 5c ea | 00 00 00 3c 00 00 00 78 |......\.|...<...x| |00002190| 00 00 00 00 00 00 00 00 | 00 00 00 05 00 00 00 00 |........|........| |000021a0| 00 00 00 04 00 00 00 00 | 00 00 00 00 00 00 00 84 |........|........| |000021b0| 00 00 00 05 00 00 00 00 | 00 00 00 88 00 00 00 00 |........|........| |000021c0| 00 00 00 00 00 00 00 93 | 00 00 00 01 00 00 00 00 |........|........| |000021d0| 00 00 00 9a 00 00 00 00 | 00 00 00 00 00 00 00 9c |........|........| |000021e0| 00 00 00 01 00 00 00 00 | 00 00 00 a3 00 00 00 00 |........|........| |000021f0| 00 00 00 00 00 00 00 a5 | 00 00 00 01 00 00 00 00 |........|........| |00002200| 00 00 00 ab 00 00 00 00 | 00 00 00 00 00 00 00 ad |........|........| |00002210| 00 00 00 01 00 00 00 00 | 00 00 00 b5 00 00 00 00 |........|........| |00002220| 00 00 00 00 00 00 00 e3 | 00 00 00 05 00 00 00 00 |........|........| |00002230| 00 00 00 eb 00 00 00 00 | 00 00 00 00 00 00 01 1d |........|........| |00002240| 00 00 00 01 00 00 00 00 | 00 00 01 24 00 00 00 00 |........|...$....| |00002250| 00 00 00 00 00 00 01 4e | 00 00 00 01 00 00 00 00 |.......N|........| |00002260| 00 00 01 55 00 00 00 00 | 00 00 00 00 00 00 01 9f |...U....|........| |00002270| 00 00 00 01 00 00 00 00 | 00 00 01 a5 00 00 00 00 |........|........| |00002280| 00 00 00 00 00 00 02 0b | 00 00 00 01 00 00 00 00 |........|........| |00002290| 00 00 02 13 00 00 00 00 | 00 00 00 00 00 00 02 34 |........|.......4| |000022a0| 00 00 00 05 00 00 00 00 | 00 00 02 3f 00 00 00 00 |........|...?....| |000022b0| 00 00 00 00 00 00 02 b7 | 00 00 00 01 00 00 00 00 |........|........| |000022c0| 00 00 02 be 00 00 00 00 | 00 00 00 00 00 00 03 85 |........|........| |000022d0| 00 00 00 01 00 00 00 00 | 00 00 03 8c 00 00 00 00 |........|........| |000022e0| 00 00 00 00 00 00 05 8f | 00 00 00 01 00 00 00 00 |........|........| |000022f0| 00 00 05 96 00 00 00 00 | 00 00 00 00 00 00 08 01 |........|........| |00002300| 00 00 00 01 00 00 00 00 | 00 00 08 07 00 00 00 00 |........|........| |00002310| 00 00 00 00 00 00 08 5b | 00 00 00 01 00 00 00 00 |.......[|........| |00002320| 00 00 08 62 00 00 00 00 | 00 00 00 00 00 00 0a 13 |...b....|........| |00002330| 00 00 00 01 00 00 00 00 | 00 00 0a 1b 00 00 00 00 |........|........| |00002340| 00 00 00 00 00 00 0a 47 | 00 00 00 01 00 00 00 00 |.......G|........| |00002350| 00 00 0a 4e 00 00 00 00 | 00 00 00 00 00 00 0a 5a |...N....|.......Z| |00002360| 00 00 00 01 00 00 00 00 | 00 00 0a 61 00 00 00 00 |........|...a....| |00002370| 00 00 00 00 00 00 0a 66 | 00 00 00 01 00 00 00 00 |.......f|........| |00002380| 00 00 0a 6c 00 00 00 00 | 00 00 00 00 00 00 0a 7b |...l....|.......{| |00002390| 00 00 00 01 00 00 00 00 | 00 00 0a 83 00 00 00 00 |........|........| |000023a0| 00 00 00 00 00 00 0b 07 | 00 00 00 01 00 00 00 00 |........|........| |000023b0| 00 00 0b 0f 00 00 00 00 | 00 00 00 00 00 00 0b 5c |........|.......\| |000023c0| 00 00 00 05 00 00 00 00 | 00 00 0b 75 00 00 00 00 |........|...u....| |000023d0| 00 00 00 00 00 00 12 75 | 00 00 00 05 00 00 00 00 |.......u|........| |000023e0| 00 00 12 7e 00 00 00 00 | 00 00 00 00 00 00 1c 1d |...~....|........| |000023f0| 00 00 00 05 00 00 00 00 | 00 00 1c 28 00 00 00 00 |........|...(....| |00002400| 00 00 00 00 00 00 1c 33 | 00 00 00 01 00 00 00 00 |.......3|........| |00002410| 00 00 1c 3a 00 00 00 00 | 00 00 00 00 00 00 1c 57 |...:....|.......W| |00002420| 00 00 00 01 00 00 00 00 | 00 00 1c 5f 00 00 00 00 |........|..._....| |00002430| 00 00 00 00 00 00 1c fd | 00 00 00 05 00 00 00 00 |........|........| |00002440| 00 00 1d 04 00 00 00 00 | 00 00 00 00 00 00 1d bf |........|........| |00002450| 00 00 00 05 00 00 00 00 | 00 00 1d c3 00 00 00 00 |........|........| |00002460| 00 00 00 00 00 00 00 48 | 00 09 4d 6f 6e 61 63 6f |.......H|..Monaco| |00002470| 00 cd 4f 60 00 00 13 78 | 01 c4 08 7c 01 e2 aa 90 |..O`...x|...|....| |00002480| 24 00 04 44 02 1c e2 3c | 00 00 00 04 00 04 00 28 |$..D...<|.......(| |00002490| 00 05 02 5c 02 03 00 28 | 00 05 02 5c 02 03 ad 5e |...\...(|...\...^| |000024a0| 65 81 00 00 00 00 00 00 | 00 00 00 00 00 00 01 00 |e.......|........| |000024b0| 00 00 01 00 00 00 04 30 | 00 00 03 30 00 00 00 45 |.......0|...0...E| |000024c0| 01 c2 7a a8 13 78 00 00 | 00 1c 00 3e 00 00 4d 50 |..z..x..|...>..MP| |000024d0| 53 52 00 01 00 0a 03 f4 | 00 00 00 00 00 00 01 cd |SR......|........| |000024e0| 51 f4 03 ed ff ff 00 00 | 02 e4 01 c4 1e c4 06 63 |Q.......|.......c| |000024f0| 6f 6c 6f 72 73 00 00 00 | 00 00 00 00 00 00 00 00 |olors...|........| +--------+-------------------------+-------------------------+--------+--------+