home *** CD-ROM | disk | FTP | other *** search
/ Acorn User 10 / AU_CD10.iso / Updates / Perl / Docs / !PerlDocs / Chapter6 / Text
Unknown  |  1997-07-17  |  41.1 KB

open in: MacOS 8.1     |     Win98     |     DOS

view JSON data     |     view as text


This file was not able to be converted.
This format is not currently supported by dexvert.

ConfidenceProgramDetectionMatch TypeSupport
100% file data default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| b4 a3 00 00 01 00 00 00 | 00 00 00 00 06 08 00 00 |........|........|
|00000010| 00 08 00 00 01 10 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 10 00 00 02 18 00 00 | c8 00 00 00 00 00 00 00 |........|........|
|00000030| 07 24 c1 00 00 00 00 00 | 00 18 00 00 a5 78 00 00 |.$......|.....x..|
|00000040| 43 70 ae 04 40 25 ff ff | 60 73 ff ff d8 3b 00 00 |Cp..@%..|`s...;..|
|00000050| 16 00 00 00 b0 fc 07 00 | 00 00 00 00 07 24 c1 00 |........|.....$..|
|00000060| 07 24 c1 00 07 24 c1 00 | 00 00 00 00 70 65 72 6c |.$...$..|....perl|
|00000070| 72 65 20 2d 20 50 65 72 | 6c 20 72 65 67 75 6c 61 |re - Per|l regula|
|00000080| 72 20 65 78 05 05 70 72 | 65 73 73 69 6f 6e 73 0d |r ex..pr|essions.|
|00000090| 08 05 05 05 07 24 c1 00 | 00 00 00 00 07 00 50 13 |.....$..|......P.|
|000000a0| 08 8d 67 00 08 8d 67 00 | 00 00 00 00 05 00 00 00 |..g...g.|........|
|000000b0| 00 78 00 00 a5 30 00 00 | 40 a2 5f 01 a0 98 fe ff |.x...0..|@._.....|
|000000c0| f0 de fe ff 68 37 00 00 | 44 65 73 63 72 69 70 74 |....h7..|Descript|
|000000d0| 69 6f 6e 0d 08 65 73 63 | 08 8e 67 00 00 00 00 00 |ion..esc|..g.....|
|000000e0| 00 30 00 00 85 9c 00 00 | 00 cc 68 07 3f 40 fe ff |.0......|..h.?@..|
|000000f0| 1f 6f fe ff 20 22 00 00 | 54 68 69 73 20 70 61 67 |.o.. "..|This pag|
|00000100| 65 20 64 65 73 63 72 69 | 62 65 73 20 74 68 65 20 |e descri|bes the |
|00000110| 73 79 6e 74 61 78 20 6f | 66 20 72 65 67 75 6c 61 |syntax o|f regula|
|00000120| 72 20 65 78 70 72 65 73 | 73 69 6f 6e 73 20 69 6e |r expres|sions in|
|00000130| 20 50 65 72 6c 2e 20 20 | 46 6f 72 20 61 20 64 65 | Perl. |For a de|
|00000140| 73 63 72 69 70 74 69 6f | 6e 20 6f 66 20 68 6f 77 |scriptio|n of how|
|00000150| 20 74 6f 20 07 5f 15 fc | 11 8f 67 00 11 8f 67 00 | to ._..|..g...g.|
|00000160| 00 00 00 00 75 73 65 08 | 11 00 00 00 00 00 00 00 |....use.|........|
|00000170| 20 72 65 67 75 6c 61 72 | 20 00 00 00 00 9c 00 00 | regular| .......|
|00000180| 85 c0 00 00 00 d8 b9 07 | 18 08 fe ff f8 36 fe ff |........|.....6..|
|00000190| 20 22 00 00 65 78 70 72 | 65 73 73 69 6f 6e 73 20 | "..expr|essions |
|000001a0| 69 6e 20 6d 61 74 63 68 | 69 6e 67 20 6f 70 65 72 |in match|ing oper|
|000001b0| 61 74 69 6f 6e 73 2c 20 | 70 6c 75 73 20 76 61 72 |ations, |plus var|
|000001c0| 69 6f 75 73 20 65 78 61 | 6d 70 6c 65 73 20 6f 66 |ious exa|mples of|
|000001d0| 20 74 68 65 20 73 61 6d | 65 2c 20 73 65 65 20 07 | the sam|e, see .|
|000001e0| 0e 90 67 00 0e 90 67 00 | 00 00 00 00 6d 2f 2f 08 |..g...g.|....m//.|
|000001f0| 0e 91 67 00 00 00 00 00 | 20 61 6e 64 20 07 08 05 |..g.....| and ...|
|00000200| 0e 92 67 00 0e 92 67 00 | 00 00 00 00 73 2f 2f 2f |..g...g.|....s///|
|00000210| 08 63 68 69 0e 93 67 00 | 00 00 00 00 20 69 6e 20 |.chi..g.|.... in |
|00000220| 74 68 65 20 63 68 61 70 | 74 65 72 20 07 72 69 6f |the chap|ter .rio|
|00000230| 10 94 67 00 10 94 67 00 | 00 00 00 00 00 c0 00 00 |..g...g.|........|
|00000240| a5 2c 00 00 40 f0 8d 00 | f1 cf fd ff d1 fe fd ff |.,..@...|........|
|00000250| 28 23 00 00 70 65 72 6c | 6f 70 08 6f 10 00 00 00 |(#..perl|op.o....|
|00000260| 00 00 00 00 2e 0d 00 00 | 00 2c 00 00 05 88 00 00 |........|.,......|
|00000270| 00 20 ea 07 1a 61 fd ff | fa 8f fd ff 20 22 00 00 |. ...a..|.... "..|
|00000280| 54 68 65 20 6d 61 74 63 | 68 69 6e 67 20 6f 70 65 |The matc|hing ope|
|00000290| 72 61 74 69 6f 6e 73 20 | 63 61 6e 20 68 61 76 65 |rations |can have|
|000002a0| 20 76 61 72 69 6f 75 73 | 20 6d 6f 64 69 66 69 65 | various| modifie|
|000002b0| 72 73 2e 20 20 54 68 65 | 20 6d 6f 64 69 66 69 65 |rs. The| modifie|
|000002c0| 72 73 20 77 68 69 63 68 | 20 72 65 6c 61 74 65 20 |rs which| relate |
|000002d0| 74 6f 20 74 68 65 20 69 | 6e 74 65 72 70 72 65 74 |to the i|nterpret|
|000002e0| 61 74 69 6f 6e 20 6f 66 | 20 74 68 65 20 00 00 00 |ation of| the ...|
|000002f0| 00 88 00 00 05 88 00 00 | 00 d8 b3 07 f3 28 fd ff |........|.....(..|
|00000300| d3 57 fd ff 20 22 00 00 | 72 65 67 75 6c 61 72 20 |.W.. "..|regular |
|00000310| 65 78 70 72 65 73 73 69 | 6f 6e 20 69 6e 73 69 64 |expressi|on insid|
|00000320| 65 20 61 72 65 20 6c 69 | 73 74 65 64 20 62 65 6c |e are li|sted bel|
|00000330| 6f 77 2e 20 20 46 6f 72 | 20 74 68 65 20 6d 6f 64 |ow. For| the mod|
|00000340| 69 66 69 65 72 73 20 74 | 68 61 74 20 61 6c 74 65 |ifiers t|hat alte|
|00000350| 72 20 74 68 65 20 62 65 | 68 61 76 69 6f 75 72 20 |r the be|haviour |
|00000360| 6f 66 20 74 68 65 20 6f | 70 65 72 61 74 69 6f 6e |of the o|peration|
|00000370| 2c 20 73 65 65 20 00 00 | 00 88 00 00 a5 c8 00 00 |, see ..|........|
|00000380| 40 fc 6f 06 cc f0 fc ff | ac 1f fd ff 20 22 00 00 |@.o.....|.... "..|
|00000390| 74 68 65 20 73 65 63 74 | 69 6f 6e 20 6f 6e 20 22 |the sect|ion on "|
|000003a0| 6d 2f 2f 22 20 69 6e 20 | 74 68 65 20 63 68 61 70 |m//" in |the chap|
|000003b0| 74 65 72 20 07 74 69 76 | 10 95 67 00 10 95 67 00 |ter .tiv|..g...g.|
|000003c0| 00 00 00 00 70 65 72 6c | 6f 70 08 0d 10 00 00 00 |....perl|op......|
|000003d0| 00 00 00 00 20 61 6e 64 | 20 74 68 65 20 73 65 63 |.... and| the sec|
|000003e0| 74 69 6f 6e 20 6f 6e 20 | 22 73 2f 2f 22 20 69 6e |tion on |"s//" in|
|000003f0| 20 74 68 65 20 63 68 61 | 70 74 65 72 20 07 73 20 | the cha|pter .s |
|00000400| 10 96 67 00 10 96 67 00 | 00 00 00 00 70 65 72 6c |..g...g.|....perl|
|00000410| 6f 70 08 20 10 00 00 00 | 00 00 00 00 2e 0d 07 6e |op. ....|.......n|
|00000420| 13 97 67 00 13 97 67 00 | 00 00 00 00 07 72 65 6e |..g...g.|.....ren|
|00000430| 09 98 67 00 13 97 67 00 | 09 98 67 00 00 00 00 00 |..g...g.|..g.....|
|00000440| 00 c8 00 00 a5 28 00 00 | 40 08 0d 00 f5 81 fc ff |.....(..|@.......|
|00000450| d5 b0 fc ff 28 23 00 00 | 69 0d 08 00 09 99 67 00 |....(#..|i.....g.|
|00000460| 13 97 67 00 00 00 00 00 | 00 28 00 00 25 58 00 00 |..g.....|.(..%X..|
|00000470| 44 5c 1f 03 ce 49 fc ff | ae 78 fc ff 20 22 00 00 |D\...I..|.x.. "..|
|00000480| 12 9d 67 00 50 46 00 00 | 00 00 00 00 12 9e 67 00 |..g.PF..|......g.|
|00000490| 70 17 00 00 00 00 00 00 | 44 6f 20 63 61 73 65 2d |p.......|Do case-|
|000004a0| 69 6e 73 65 6e 73 69 74 | 69 76 65 20 70 61 74 74 |insensit|ive patt|
|000004b0| 65 72 6e 20 6d 61 74 63 | 68 69 6e 67 2e 0d 00 00 |ern matc|hing....|
|000004c0| 00 58 00 00 a5 e8 00 00 | 44 a8 ec 07 f7 da fb ff |.X......|D.......|
|000004d0| d7 09 fc ff 20 22 00 00 | 12 6f 6d 20 50 46 00 00 |.... "..|.om PF..|
|000004e0| 00 00 00 00 12 61 74 20 | 70 17 00 00 00 00 00 00 |.....at |p.......|
|000004f0| 49 66 20 07 0e 9a 67 00 | 13 97 67 00 0e 9a 67 00 |If ...g.|..g...g.|
|00000500| 00 00 00 00 75 73 65 20 | 6c 6f 63 61 6c 65 08 67 |....use |locale.g|
|00000510| 0e 9b 67 00 13 97 67 00 | 00 00 00 00 20 69 73 20 |..g...g.|.... is |
|00000520| 69 6e 20 65 66 66 65 63 | 74 2c 20 74 68 65 20 63 |in effec|t, the c|
|00000530| 61 73 65 20 6d 61 70 20 | 69 73 20 74 61 6b 65 6e |ase map |is taken|
|00000540| 20 66 72 6f 6d 20 74 68 | 65 20 63 75 72 72 65 6e | from th|e curren|
|00000550| 74 20 6c 6f 63 61 6c 65 | 2e 20 20 53 65 65 20 74 |t locale|. See t|
|00000560| 68 65 20 63 68 61 70 74 | 65 72 20 07 10 9c 67 00 |he chapt|er ...g.|
|00000570| 13 97 67 00 10 9c 67 00 | 00 00 00 00 70 65 72 6c |..g...g.|....perl|
|00000580| 6c 6f 63 61 6c 65 08 65 | 10 00 00 00 13 97 67 00 |locale.e|......g.|
|00000590| 00 00 00 00 2e 0d 07 2c | 09 9d 67 00 13 97 67 00 |.......,|..g...g.|
|000005a0| 09 9d 67 00 00 00 00 00 | 00 e8 00 00 a5 28 00 00 |..g.....|.....(..|
|000005b0| 40 0c 27 00 20 6c fb ff | 00 9b fb ff 28 23 00 00 |@.'. l..|....(#..|
|000005c0| 6d 0d 08 65 09 9e 67 00 | 13 97 67 00 00 00 00 00 |m..e..g.|..g.....|
|000005d0| 00 28 00 00 05 9c 00 00 | 04 c4 f7 07 f9 33 fb ff |.(......|.....3..|
|000005e0| d9 62 fb ff 20 22 00 00 | 12 77 6f 75 50 46 00 00 |.b.. "..|.wouPF..|
|000005f0| 00 00 00 00 12 74 63 68 | 70 17 00 00 00 00 00 00 |.....tch|p.......|
|00000600| 54 72 65 61 74 20 73 74 | 72 69 6e 67 20 61 73 20 |Treat st|ring as |
|00000610| 6d 75 6c 74 69 70 6c 65 | 20 6c 69 6e 65 73 2e 20 |multiple| lines. |
|00000620| 20 54 68 61 74 20 69 73 | 2c 20 63 68 61 6e 67 65 | That is|, change|
|00000630| 20 22 5e 22 20 61 6e 64 | 20 22 24 22 20 66 72 6f | "^" and| "$" fro|
|00000640| 6d 20 6d 61 74 63 68 69 | 6e 67 20 61 74 20 6f 6e |m matchi|ng at on|
|00000650| 6c 79 20 74 68 65 20 76 | 65 72 79 20 73 74 61 72 |ly the v|ery star|
|00000660| 74 20 6f 72 20 65 6e 64 | 20 6f 66 20 00 9c 00 00 |t or end| of ....|
|00000670| a5 70 00 00 40 74 e4 04 | d2 fb fa ff b2 2a fb ff |.p..@t..|.....*..|
|00000680| 20 22 00 00 74 68 65 20 | 73 74 72 69 6e 67 20 74 | "..the |string t|
|00000690| 6f 20 74 68 65 20 73 74 | 61 72 74 20 6f 72 20 65 |o the st|art or e|
|000006a0| 6e 64 20 6f 66 20 61 6e | 79 20 6c 69 6e 65 20 61 |nd of an|y line a|
|000006b0| 6e 79 77 68 65 72 65 20 | 77 69 74 68 69 6e 20 74 |nywhere |within t|
|000006c0| 68 65 20 73 74 72 69 6e | 67 2c 0d 07 09 9f 67 00 |he strin|g,....g.|
|000006d0| 13 97 67 00 09 9f 67 00 | 00 00 00 00 00 70 00 00 |..g...g.|.....p..|
|000006e0| a5 28 00 00 40 3c 12 00 | fb 8c fa ff db bb fa ff |.(..@<..|........|
|000006f0| 28 23 00 00 73 0d 08 6c | 09 a0 67 00 13 97 67 00 |(#..s..l|..g...g.|
|00000700| 00 00 00 00 00 28 00 00 | 05 98 00 00 04 14 84 07 |.....(..|........|
|00000710| d4 54 fa ff b4 83 fa ff | 20 22 00 00 12 20 6d 61 |.T......| "... ma|
|00000720| 50 46 00 00 00 00 00 00 | 12 20 65 6d 70 17 00 00 |PF......|. emp...|
|00000730| 00 00 00 00 54 72 65 61 | 74 20 73 74 72 69 6e 67 |....Trea|t string|
|00000740| 20 61 73 20 73 69 6e 67 | 6c 65 20 6c 69 6e 65 2e | as sing|le line.|
|00000750| 20 20 54 68 61 74 20 69 | 73 2c 20 63 68 61 6e 67 | That i|s, chang|
|00000760| 65 20 22 2e 22 20 74 6f | 20 6d 61 74 63 68 20 61 |e "." to| match a|
|00000770| 6e 79 20 63 68 61 72 61 | 63 74 65 72 20 77 68 61 |ny chara|cter wha|
|00000780| 74 73 6f 65 76 65 72 2c | 20 65 76 65 6e 20 61 20 |tsoever,| even a |
|00000790| 6e 65 77 6c 69 6e 65 2c | 20 00 00 00 00 98 00 00 |newline,| .......|
|000007a0| a5 4c 00 00 40 dc 9f 02 | ad 1c fa ff 8d 4b fa ff |.L..@...|.....K..|
|000007b0| 20 22 00 00 77 68 69 63 | 68 20 69 74 20 6e 6f 72 | "..whic|h it nor|
|000007c0| 6d 61 6c 6c 79 20 77 6f | 75 6c 64 20 6e 6f 74 20 |mally wo|uld not |
|000007d0| 6d 61 74 63 68 2e 0d 07 | 09 a1 67 00 13 97 67 00 |match...|..g...g.|
|000007e0| 09 a1 67 00 00 00 00 00 | 00 4c 00 00 a5 28 00 00 |..g.....|.L...(..|
|000007f0| 40 70 17 00 d6 ad f9 ff | b6 dc f9 ff 28 23 00 00 |@p......|....(#..|
|00000800| 78 0d 08 20 09 a2 67 00 | 13 97 67 00 00 00 00 00 |x.. ..g.|..g.....|
|00000810| 00 28 00 00 a5 84 00 00 | 44 f4 ae 05 af 75 f9 ff |.(......|D....u..|
|00000820| 8f a4 f9 ff 20 22 00 00 | 12 65 20 74 50 46 00 00 |.... "..|.e tPF..|
|00000830| 00 00 00 00 12 69 74 68 | 70 17 00 00 00 00 00 00 |.....ith|p.......|
|00000840| 45 78 74 65 6e 64 20 79 | 6f 75 72 20 70 61 74 74 |Extend y|our patt|
|00000850| 65 72 6e 27 73 20 6c 65 | 67 69 62 69 6c 69 74 79 |ern's le|gibility|
|00000860| 20 62 79 20 70 65 72 6d | 69 74 74 69 6e 67 20 77 | by perm|itting w|
|00000870| 68 69 74 65 73 70 61 63 | 65 20 61 6e 64 20 63 6f |hitespac|e and co|
|00000880| 6d 6d 65 6e 74 73 2e 0d | 08 65 67 75 13 a3 67 00 |mments..|.egu..g.|
|00000890| 00 00 00 00 00 84 00 00 | 85 a0 00 00 00 b0 f3 07 |........|........|
|000008a0| d8 06 f9 ff b8 35 f9 ff | 20 22 00 00 54 68 65 73 |.....5..| "..Thes|
|000008b0| 65 20 61 72 65 20 75 73 | 75 61 6c 6c 79 20 77 72 |e are us|ually wr|
|000008c0| 69 74 74 65 6e 20 61 73 | 20 22 74 68 65 20 07 00 |itten as| "the ..|
|000008d0| 0e a4 67 00 0e a4 67 00 | 00 00 00 00 2f 78 08 00 |..g...g.|..../x..|
|000008e0| 0e a5 67 00 00 00 00 00 | 20 6d 6f 64 69 66 69 65 |..g.....| modifie|
|000008f0| 72 22 2c 20 65 76 65 6e | 20 74 68 6f 75 67 68 20 |r", even| though |
|00000900| 74 68 65 20 64 65 6c 69 | 6d 69 74 65 72 20 69 6e |the deli|miter in|
|00000910| 20 71 75 65 73 74 69 6f | 6e 20 6d 69 67 68 74 20 | questio|n might |
|00000920| 6e 6f 74 20 61 63 74 75 | 61 6c 6c 79 20 62 65 20 |not actu|ally be |
|00000930| 61 20 00 00 00 a0 00 00 | 05 84 00 00 00 40 b8 07 |a ......|.....@..|
|00000940| b1 ce f8 ff 91 fd f8 ff | 20 22 00 00 73 6c 61 73 |........| "..slas|
|00000950| 68 2e 20 20 49 6e 20 66 | 61 63 74 2c 20 61 6e 79 |h. In f|act, any|
|00000960| 20 6f 66 20 74 68 65 73 | 65 20 6d 6f 64 69 66 69 | of thes|e modifi|
|00000970| 65 72 73 20 6d 61 79 20 | 61 6c 73 6f 20 62 65 20 |ers may |also be |
|00000980| 65 6d 62 65 64 64 65 64 | 20 77 69 74 68 69 6e 20 |embedded| within |
|00000990| 74 68 65 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |the regu|lar expr|
|000009a0| 65 73 73 69 6f 6e 20 69 | 74 73 65 6c 66 20 75 73 |ession i|tself us|
|000009b0| 69 6e 67 20 74 68 65 20 | 00 84 00 00 a5 54 00 00 |ing the |.....T..|
|000009c0| 40 ec a7 02 8a 96 f8 ff | 6a c5 f8 ff 20 22 00 00 |@.......|j... "..|
|000009d0| 6e 65 77 20 07 20 6f 72 | 0e a6 67 00 0e a6 67 00 |new . or|..g...g.|
|000009e0| 00 00 00 00 28 3f 2e 2e | 2e 29 08 6f 0e a7 67 00 |....(?..|.).o..g.|
|000009f0| 00 00 00 00 20 63 6f 6e | 73 74 72 75 63 74 2e 20 |.... con|struct. |
|00000a00| 20 53 65 65 20 62 65 6c | 6f 77 2e 0d 00 54 00 00 | See bel|ow...T..|
|00000a10| 85 9c 00 00 00 e0 63 07 | b3 27 f8 ff 93 56 f8 ff |......c.|.'...V..|
|00000a20| 20 22 00 00 54 68 65 20 | 07 67 20 77 0e a8 67 00 | "..The |.g w..g.|
|00000a30| 0e a8 67 00 00 00 00 00 | 2f 78 08 6e 0e a9 67 00 |..g.....|/x.n..g.|
|00000a40| 00 00 00 00 20 6d 6f 64 | 69 66 69 65 72 20 69 74 |.... mod|ifier it|
|00000a50| 73 65 6c 66 20 6e 65 65 | 64 73 20 61 20 6c 69 74 |self nee|ds a lit|
|00000a60| 74 6c 65 20 6d 6f 72 65 | 20 65 78 70 6c 61 6e 61 |tle more| explana|
|00000a70| 74 69 6f 6e 2e 20 20 49 | 74 20 74 65 6c 6c 73 20 |tion. I|t tells |
|00000a80| 74 68 65 20 72 65 67 75 | 6c 61 72 20 65 78 70 72 |the regu|lar expr|
|00000a90| 65 73 73 69 6f 6e 20 70 | 61 72 73 65 72 20 74 6f |ession p|arser to|
|00000aa0| 20 69 67 6e 6f 72 65 20 | 00 9c 00 00 05 80 00 00 | ignore |........|
|00000ab0| 00 1c 6a 07 8c ef f7 ff | 6c 1e f8 ff 20 22 00 00 |..j.....|l... "..|
|00000ac0| 77 68 69 74 65 73 70 61 | 63 65 20 74 68 61 74 20 |whitespa|ce that |
|00000ad0| 69 73 20 6e 65 69 74 68 | 65 72 20 62 61 63 6b 73 |is neith|er backs|
|00000ae0| 6c 61 73 68 65 64 20 6e | 6f 72 20 77 69 74 68 69 |lashed n|or withi|
|00000af0| 6e 20 61 20 63 68 61 72 | 61 63 74 65 72 20 63 6c |n a char|acter cl|
|00000b00| 61 73 73 2e 20 20 59 6f | 75 20 63 61 6e 20 75 73 |ass. Yo|u can us|
|00000b10| 65 20 74 68 69 73 20 74 | 6f 20 62 72 65 61 6b 20 |e this t|o break |
|00000b20| 75 70 20 79 6f 75 72 20 | 00 80 00 00 85 a0 00 00 |up your |........|
|00000b30| 00 7c a0 07 65 b7 f7 ff | 45 e6 f7 ff 20 22 00 00 |.|..e...|E... "..|
|00000b40| 72 65 67 75 6c 61 72 20 | 65 78 70 72 65 73 73 69 |regular |expressi|
|00000b50| 6f 6e 20 69 6e 74 6f 20 | 28 73 6c 69 67 68 74 6c |on into |(slightl|
|00000b60| 79 29 20 6d 6f 72 65 20 | 72 65 61 64 61 62 6c 65 |y) more |readable|
|00000b70| 20 70 61 72 74 73 2e 20 | 20 54 68 65 20 07 69 76 | parts. | The .iv|
|00000b80| 0e aa 67 00 0e aa 67 00 | 00 00 00 00 23 08 20 66 |..g...g.|....#. f|
|00000b90| 0e ab 67 00 00 00 00 00 | 20 63 68 61 72 61 63 74 |..g.....| charact|
|00000ba0| 65 72 20 69 73 20 61 6c | 73 6f 20 74 72 65 61 74 |er is al|so treat|
|00000bb0| 65 64 20 61 73 20 61 20 | 6d 65 74 61 63 68 61 72 |ed as a |metachar|
|00000bc0| 61 63 74 65 72 20 00 00 | 00 a0 00 00 85 a0 00 00 |acter ..|........|
|00000bd0| 00 30 e3 07 3e 7f f7 ff | 1e ae f7 ff 20 22 00 00 |.0..>...|.... "..|
|00000be0| 69 6e 74 72 6f 64 75 63 | 69 6e 67 20 61 20 63 6f |introduc|ing a co|
|00000bf0| 6d 6d 65 6e 74 2c 20 6a | 75 73 74 20 61 73 20 69 |mment, j|ust as i|
|00000c00| 6e 20 6f 72 64 69 6e 61 | 72 79 20 50 65 72 6c 20 |n ordina|ry Perl |
|00000c10| 63 6f 64 65 2e 20 20 54 | 68 69 73 20 61 6c 73 6f |code. T|his also|
|00000c20| 20 6d 65 61 6e 73 20 74 | 68 61 74 20 69 66 20 79 | means t|hat if y|
|00000c30| 6f 75 20 77 61 6e 74 20 | 72 65 61 6c 20 77 68 69 |ou want |real whi|
|00000c40| 74 65 73 70 61 63 65 20 | 6f 72 20 07 0e ac 67 00 |tespace |or ...g.|
|00000c50| 0e ac 67 00 00 00 00 00 | 23 08 6f 77 0e ad 67 00 |..g.....|#.ow..g.|
|00000c60| 00 00 00 00 20 00 00 00 | 00 a0 00 00 05 88 00 00 |.... ...|........|
|00000c70| 00 34 b2 07 17 47 f7 ff | f7 75 f7 ff 20 22 00 00 |.4...G..|.u.. "..|
|00000c80| 63 68 61 72 61 63 74 65 | 72 73 20 69 6e 20 74 68 |characte|rs in th|
|00000c90| 65 20 70 61 74 74 65 72 | 6e 20 74 68 61 74 20 79 |e patter|n that y|
|00000ca0| 6f 75 27 6c 6c 20 68 61 | 76 65 20 74 6f 20 65 69 |ou'll ha|ve to ei|
|00000cb0| 74 68 65 72 20 65 73 63 | 61 70 65 20 74 68 65 6d |ther esc|ape them|
|00000cc0| 20 6f 72 20 65 6e 63 6f | 64 65 20 74 68 65 6d 20 | or enco|de them |
|00000cd0| 75 73 69 6e 67 20 6f 63 | 74 61 6c 20 6f 72 20 68 |using oc|tal or h|
|00000ce0| 65 78 20 65 73 63 61 70 | 65 73 2e 20 20 00 00 00 |ex escap|es. ...|
|00000cf0| 00 88 00 00 05 84 00 00 | 00 d0 df 07 f0 0e f7 ff |........|........|
|00000d00| d0 3d f7 ff 20 22 00 00 | 54 61 6b 65 6e 20 74 6f |.=.. "..|Taken to|
|00000d10| 67 65 74 68 65 72 2c 20 | 74 68 65 73 65 20 66 65 |gether, |these fe|
|00000d20| 61 74 75 72 65 73 20 67 | 6f 20 61 20 6c 6f 6e 67 |atures g|o a long|
|00000d30| 20 77 61 79 20 74 6f 77 | 61 72 64 73 20 6d 61 6b | way tow|ards mak|
|00000d40| 69 6e 67 20 50 65 72 6c | 27 73 20 72 65 67 75 6c |ing Perl|'s regul|
|00000d50| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 73 20 6d |ar expre|ssions m|
|00000d60| 6f 72 65 20 72 65 61 64 | 61 62 6c 65 2e 20 20 53 |ore read|able. S|
|00000d70| 65 65 20 00 00 84 00 00 | a5 70 00 00 40 f0 c9 03 |ee .....|.p..@...|
|00000d80| c9 d6 f6 ff a9 05 f7 ff | 20 22 00 00 74 68 65 20 |........| "..the |
|00000d90| 43 20 63 6f 6d 6d 65 6e | 74 20 64 65 6c 65 74 69 |C commen|t deleti|
|00000da0| 6f 6e 20 63 6f 64 65 20 | 69 6e 20 74 68 65 20 63 |on code |in the c|
|00000db0| 68 61 70 74 65 72 20 07 | 10 ae 67 00 10 ae 67 00 |hapter .|..g...g.|
|00000dc0| 00 00 00 00 70 65 72 6c | 6f 70 08 00 10 00 00 00 |....perl|op......|
|00000dd0| 00 00 00 00 2e 0d 07 00 | 0a af 67 00 0a af 67 00 |........|..g...g.|
|00000de0| 00 00 00 00 00 70 00 00 | a5 38 00 00 40 7e f8 01 |.....p..|.8..@~..|
|00000df0| 22 60 f6 ff d2 96 f6 ff | 18 2b 00 00 52 65 67 75 |"`......|.+..Regu|
|00000e00| 6c 61 72 20 45 78 70 72 | 65 73 73 69 6f 6e 73 0d |lar Expr|essions.|
|00000e10| 08 63 74 65 0a b0 67 00 | 00 00 00 00 00 38 00 00 |.cte..g.|.....8..|
|00000e20| 05 88 00 00 00 20 ea 07 | ed 0a f6 ff cd 39 f6 ff |..... ..|.....9..|
|00000e30| 20 22 00 00 54 68 65 20 | 70 61 74 74 65 72 6e 73 | "..The |patterns|
|00000e40| 20 75 73 65 64 20 69 6e | 20 70 61 74 74 65 72 6e | used in| pattern|
|00000e50| 20 6d 61 74 63 68 69 6e | 67 20 61 72 65 20 72 65 | matchin|g are re|
|00000e60| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00000e70| 73 20 73 75 63 68 20 61 | 73 20 74 68 6f 73 65 20 |s such a|s those |
|00000e80| 73 75 70 70 6c 69 65 64 | 20 69 6e 20 74 68 65 20 |supplied| in the |
|00000e90| 56 65 72 73 69 6f 6e 20 | 38 20 72 65 67 65 78 70 |Version |8 regexp|
|00000ea0| 20 00 00 00 00 88 00 00 | 05 80 00 00 00 98 18 07 | .......|........|
|00000eb0| c6 d2 f5 ff a6 01 f6 ff | 20 22 00 00 72 6f 75 74 |........| "..rout|
|00000ec0| 69 6e 65 73 2e 20 20 28 | 49 6e 20 66 61 63 74 2c |ines. (|In fact,|
|00000ed0| 20 74 68 65 20 72 6f 75 | 74 69 6e 65 73 20 61 72 | the rou|tines ar|
|00000ee0| 65 20 64 65 72 69 76 65 | 64 20 28 64 69 73 74 61 |e derive|d (dista|
|00000ef0| 6e 74 6c 79 29 20 66 72 | 6f 6d 20 48 65 6e 72 79 |ntly) fr|om Henry|
|00000f00| 20 53 70 65 6e 63 65 72 | 27 73 20 66 72 65 65 6c | Spencer|'s freel|
|00000f10| 79 20 72 65 64 69 73 74 | 72 69 62 75 74 61 62 6c |y redist|ributabl|
|00000f20| 65 20 00 00 00 80 00 00 | a5 a0 00 00 40 98 30 07 |e ......|....@.0.|
|00000f30| 9f 9a f5 ff 7f c9 f5 ff | 20 22 00 00 72 65 69 6d |........| "..reim|
|00000f40| 70 6c 65 6d 65 6e 74 61 | 74 69 6f 6e 20 6f 66 20 |plementa|tion of |
|00000f50| 74 68 65 20 56 38 20 72 | 6f 75 74 69 6e 65 73 2e |the V8 r|outines.|
|00000f60| 29 20 53 65 65 20 74 68 | 65 20 63 68 61 70 74 65 |) See th|e chapte|
|00000f70| 72 20 07 65 10 b1 67 00 | 10 b1 67 00 00 00 00 00 |r .e..g.|..g.....|
|00000f80| 56 65 72 73 69 6f 6e 20 | 38 20 52 65 67 75 6c 61 |Version |8 Regula|
|00000f90| 72 20 45 78 70 72 65 73 | 73 69 6f 6e 73 08 20 28 |r Expres|sions. (|
|00000fa0| 10 00 00 00 00 00 00 00 | 20 66 6f 72 20 64 65 74 |........| for det|
|00000fb0| 61 69 6c 73 2e 0d 07 72 | 14 b2 67 00 14 b2 67 00 |ails...r|..g...g.|
|00000fc0| 00 00 00 00 00 a0 00 00 | 01 10 00 00 41 14 0a 06 |........|....A...|
|00000fd0| 00 00 00 00 00 10 00 00 | 02 18 00 00 64 02 00 00 |........|....d...|
|00000fe0| 00 00 00 00 14 b2 67 00 | 00 00 00 00 00 18 00 00 |......g.|........|
|00000ff0| a5 c4 00 00 40 14 0a 06 | cf 44 f2 ff af 73 f2 ff |....@...|.D...s..|
|00001000| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00001010| 49 6e 20 70 61 72 74 69 | 63 75 6c 61 72 20 74 68 |In parti|cular th|
|00001020| 65 20 66 6f 6c 6c 6f 77 | 69 6e 67 20 6d 65 74 61 |e follow|ing meta|
|00001030| 63 68 61 72 61 63 74 65 | 72 73 20 68 61 76 65 20 |characte|rs have |
|00001040| 74 68 65 69 72 20 73 74 | 61 6e 64 61 72 64 20 07 |their st|andard .|
|00001050| 11 b3 67 00 14 b2 67 00 | 11 b3 67 00 00 00 00 00 |..g...g.|..g.....|
|00001060| 65 67 72 65 70 08 00 00 | 11 00 00 00 14 b2 67 00 |egrep...|......g.|
|00001070| 00 00 00 00 2d 69 73 68 | 20 6d 65 61 6e 69 6e 67 |....-ish| meaning|
|00001080| 73 3a 0d 08 14 00 00 00 | 00 00 00 00 07 00 00 00 |s:......|........|
|00001090| 12 b4 67 00 12 b4 67 00 | 00 00 00 00 07 20 74 68 |..g...g.|..... th|
|000010a0| 0c b5 67 00 12 b4 67 00 | 0c b5 67 00 00 00 00 00 |..g...g.|..g.....|
|000010b0| 00 c4 00 00 25 3c 00 00 | 40 00 ee 02 c8 dd f1 ff |....%<..|@.......|
|000010c0| d8 04 f2 ff 70 1a 00 00 | 5c 20 20 20 51 75 6f 74 |....p...|\ Quot|
|000010d0| 65 20 74 68 65 20 6e 65 | 78 74 20 6d 65 74 61 63 |e the ne|xt metac|
|000010e0| 68 61 72 61 63 74 65 72 | 0d 00 00 00 00 3c 00 00 |haracter|.....<..|
|000010f0| 25 3c 00 00 41 50 34 03 | e8 ae f1 ff f8 d5 f1 ff |%<..AP4.|........|
|00001100| 70 1a 00 00 5e 20 20 20 | 4d 61 74 63 68 20 74 68 |p...^ |Match th|
|00001110| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 74 |e beginn|ing of t|
|00001120| 68 65 20 6c 69 6e 65 0d | 00 3c 00 00 25 44 00 00 |he line.|.<..%D..|
|00001130| 41 80 a9 03 08 80 f1 ff | 18 a7 f1 ff 70 1a 00 00 |A.......|....p...|
|00001140| 2e 20 20 20 4d 61 74 63 | 68 20 61 6e 79 20 63 68 |. Matc|h any ch|
|00001150| 61 72 61 63 74 65 72 20 | 28 65 78 63 65 70 74 20 |aracter |(except |
|00001160| 6e 65 77 6c 69 6e 65 29 | 0d 00 00 00 00 44 00 00 |newline)|.....D..|
|00001170| 25 58 00 00 40 40 7e 05 | 28 51 f1 ff 38 78 f1 ff |%X..@@~.|(Q..8x..|
|00001180| 70 1a 00 00 24 20 20 20 | 4d 61 74 63 68 20 74 68 |p...$ |Match th|
|00001190| 65 20 65 6e 64 20 6f 66 | 20 74 68 65 20 6c 69 6e |e end of| the lin|
|000011a0| 65 20 28 6f 72 20 62 65 | 66 6f 72 65 20 6e 65 77 |e (or be|fore new|
|000011b0| 6c 69 6e 65 20 61 74 20 | 74 68 65 20 65 6e 64 29 |line at |the end)|
|000011c0| 0d 00 00 00 00 58 00 00 | 25 28 00 00 40 90 5f 01 |.....X..|%(..@._.|
|000011d0| 48 22 f1 ff 58 49 f1 ff | 70 1a 00 00 7c 20 20 20 |H"..XI..|p...| |
|000011e0| 41 6c 74 65 72 6e 61 74 | 69 6f 6e 0d 00 28 00 00 |Alternat|ion..(..|
|000011f0| 25 28 00 00 40 40 19 01 | 68 f3 f0 ff 78 1a f1 ff |%(..@@..|h...x...|
|00001200| 70 1a 00 00 28 29 20 20 | 47 72 6f 75 70 69 6e 67 |p...() |Grouping|
|00001210| 0d 00 00 00 00 28 00 00 | a5 58 00 00 40 50 bd 01 |.....(..|.X..@P..|
|00001220| 88 c4 f0 ff 98 eb f0 ff | 70 1a 00 00 5b 5d 20 20 |........|p...[] |
|00001230| 43 68 61 72 61 63 74 65 | 72 20 63 6c 61 73 73 0d |Characte|r class.|
|00001240| 08 64 75 6c 0c b6 67 00 | 12 b4 67 00 00 00 00 00 |.dul..g.|..g.....|
|00001250| 08 00 00 00 12 00 00 00 | 00 00 00 00 07 77 69 6e |........|.....win|
|00001260| 18 b7 67 00 18 b7 67 00 | 00 00 00 00 00 58 00 00 |..g...g.|.....X..|
|00001270| a5 24 00 00 40 00 00 00 | f8 af f0 ff b8 bc f0 ff |.$..@...|........|
|00001280| 00 00 00 00 0d 08 0d 08 | 18 b8 67 00 00 00 00 00 |........|..g.....|
|00001290| 00 24 00 00 05 88 00 00 | 00 d0 cd 07 28 57 f0 ff |.$......|....(W..|
|000012a0| 08 86 f0 ff 20 22 00 00 | 42 79 20 64 65 66 61 75 |.... "..|By defau|
|000012b0| 6c 74 2c 20 74 68 65 20 | 22 5e 22 20 63 68 61 72 |lt, the |"^" char|
|000012c0| 61 63 74 65 72 20 69 73 | 20 67 75 61 72 61 6e 74 |acter is| guarant|
|000012d0| 65 65 64 20 74 6f 20 6d | 61 74 63 68 20 61 74 20 |eed to m|atch at |
|000012e0| 6f 6e 6c 79 20 74 68 65 | 20 62 65 67 69 6e 6e 69 |only the| beginni|
|000012f0| 6e 67 20 6f 66 20 74 68 | 65 20 73 74 72 69 6e 67 |ng of th|e string|
|00001300| 2c 20 74 68 65 20 22 24 | 22 20 63 68 61 72 61 63 |, the "$|" charac|
|00001310| 74 65 72 20 61 74 20 00 | 00 88 00 00 05 88 00 00 |ter at .|........|
|00001320| 00 24 da 07 01 1f f0 ff | e1 4d f0 ff 20 22 00 00 |.$......|.M.. "..|
|00001330| 6f 6e 6c 79 20 74 68 65 | 20 65 6e 64 20 28 6f 72 |only the| end (or|
|00001340| 20 62 65 66 6f 72 65 20 | 74 68 65 20 6e 65 77 6c | before |the newl|
|00001350| 69 6e 65 20 61 74 20 74 | 68 65 20 65 6e 64 29 20 |ine at t|he end) |
|00001360| 61 6e 64 20 50 65 72 6c | 20 64 6f 65 73 20 63 65 |and Perl| does ce|
|00001370| 72 74 61 69 6e 20 6f 70 | 74 69 6d 69 7a 61 74 69 |rtain op|timizati|
|00001380| 6f 6e 73 20 77 69 74 68 | 20 74 68 65 20 61 73 73 |ons with| the ass|
|00001390| 75 6d 70 74 69 6f 6e 20 | 74 68 61 74 20 00 00 00 |umption |that ...|
|000013a0| 00 88 00 00 05 7c 00 00 | 00 4c 46 07 da e6 ef ff |.....|..|.LF.....|
|000013b0| ba 15 f0 ff 20 22 00 00 | 74 68 65 20 73 74 72 69 |.... "..|the stri|
|000013c0| 6e 67 20 63 6f 6e 74 61 | 69 6e 73 20 6f 6e 6c 79 |ng conta|ins only|
|000013d0| 20 6f 6e 65 20 6c 69 6e | 65 2e 20 20 45 6d 62 65 | one lin|e. Embe|
|000013e0| 64 64 65 64 20 6e 65 77 | 6c 69 6e 65 73 20 77 69 |dded new|lines wi|
|000013f0| 6c 6c 20 6e 6f 74 20 62 | 65 20 6d 61 74 63 68 65 |ll not b|e matche|
|00001400| 64 20 62 79 20 22 5e 22 | 20 6f 72 20 22 24 22 2e |d by "^"| or "$".|
|00001410| 20 20 59 6f 75 20 6d 61 | 79 2c 20 00 00 7c 00 00 | You ma|y, ..|..|
|00001420| 05 88 00 00 00 20 bd 07 | b3 ae ef ff 93 dd ef ff |..... ..|........|
|00001430| 20 22 00 00 68 6f 77 65 | 76 65 72 2c 20 77 69 73 | "..howe|ver, wis|
|00001440| 68 20 74 6f 20 74 72 65 | 61 74 20 61 20 73 74 72 |h to tre|at a str|
|00001450| 69 6e 67 20 61 73 20 61 | 20 6d 75 6c 74 69 2d 6c |ing as a| multi-l|
|00001460| 69 6e 65 20 62 75 66 66 | 65 72 2c 20 73 75 63 68 |ine buff|er, such|
|00001470| 20 74 68 61 74 20 74 68 | 65 20 22 5e 22 20 77 69 | that th|e "^" wi|
|00001480| 6c 6c 20 6d 61 74 63 68 | 20 61 66 74 65 72 20 61 |ll match| after a|
|00001490| 6e 79 20 6e 65 77 6c 69 | 6e 65 20 77 69 74 68 69 |ny newli|ne withi|
|000014a0| 6e 20 00 00 00 88 00 00 | 05 88 00 00 00 a0 cd 07 |n ......|........|
|000014b0| 8c 76 ef ff 6c a5 ef ff | 20 22 00 00 74 68 65 20 |.v..l...| "..the |
|000014c0| 73 74 72 69 6e 67 2c 20 | 61 6e 64 20 22 24 22 20 |string, |and "$" |
|000014d0| 77 69 6c 6c 20 6d 61 74 | 63 68 20 62 65 66 6f 72 |will mat|ch befor|
|000014e0| 65 20 61 6e 79 20 6e 65 | 77 6c 69 6e 65 2e 20 20 |e any ne|wline. |
|000014f0| 41 74 20 74 68 65 20 63 | 6f 73 74 20 6f 66 20 61 |At the c|ost of a|
|00001500| 20 6c 69 74 74 6c 65 20 | 6d 6f 72 65 20 6f 76 65 | little |more ove|
|00001510| 72 68 65 61 64 2c 20 79 | 6f 75 20 63 61 6e 20 64 |rhead, y|ou can d|
|00001520| 6f 20 74 68 69 73 20 62 | 79 20 00 00 00 88 00 00 |o this b|y ......|
|00001530| 85 98 00 00 00 7c 61 07 | 65 3e ef ff 45 6d ef ff |.....|a.|e>..Em..|
|00001540| 20 22 00 00 75 73 69 6e | 67 20 74 68 65 20 2f 6d | "..usin|g the /m|
|00001550| 20 6d 6f 64 69 66 69 65 | 72 20 6f 6e 20 74 68 65 | modifie|r on the|
|00001560| 20 70 61 74 74 65 72 6e | 20 6d 61 74 63 68 20 6f | pattern| match o|
|00001570| 70 65 72 61 74 6f 72 2e | 20 20 28 4f 6c 64 65 72 |perator.| (Older|
|00001580| 20 70 72 6f 67 72 61 6d | 73 20 64 69 64 20 74 68 | program|s did th|
|00001590| 69 73 20 62 79 20 73 65 | 74 74 69 6e 67 20 07 6f |is by se|tting .o|
|000015a0| 0e b9 67 00 0e b9 67 00 | 00 00 00 00 24 2a 08 6f |..g...g.|....$*.o|
|000015b0| 0e ba 67 00 00 00 00 00 | 2c 20 62 75 74 20 74 68 |..g.....|, but th|
|000015c0| 69 73 20 00 00 98 00 00 | 25 38 00 00 40 d8 0d 02 |is .....|%8..@...|
|000015d0| 3e 06 ef ff 1e 35 ef ff | 20 22 00 00 70 72 61 63 |>....5..| "..prac|
|000015e0| 74 69 63 65 20 69 73 20 | 6e 6f 77 20 64 65 70 72 |tice is |now depr|
|000015f0| 65 63 61 74 65 64 2e 29 | 0d 00 00 00 00 38 00 00 |ecated.)|.....8..|
|00001600| 85 9c 00 00 00 bc 63 07 | 67 97 ee ff 47 c6 ee ff |......c.|g...G...|
|00001610| 20 22 00 00 54 6f 20 66 | 61 63 69 6c 69 74 61 74 | "..To f|acilitat|
|00001620| 65 20 6d 75 6c 74 69 2d | 6c 69 6e 65 20 73 75 62 |e multi-|line sub|
|00001630| 73 74 69 74 75 74 69 6f | 6e 73 2c 20 74 68 65 20 |stitutio|ns, the |
|00001640| 22 2e 22 20 63 68 61 72 | 61 63 74 65 72 20 6e 65 |"." char|acter ne|
|00001650| 76 65 72 20 6d 61 74 63 | 68 65 73 20 61 20 6e 65 |ver matc|hes a ne|
|00001660| 77 6c 69 6e 65 20 75 6e | 6c 65 73 73 20 79 6f 75 |wline un|less you|
|00001670| 20 75 73 65 20 74 68 65 | 20 07 67 00 0e bb 67 00 | use the| .g...g.|
|00001680| 0e bb 67 00 00 00 00 00 | 2f 73 08 4d 0e bc 67 00 |..g.....|/s.M..g.|
|00001690| 00 00 00 00 20 00 00 00 | 00 9c 00 00 85 a8 00 00 |.... ...|........|
|000016a0| 00 f4 ee 07 40 5f ee ff | 20 8e ee ff 20 22 00 00 |....@_..| ... "..|
|000016b0| 6d 6f 64 69 66 69 65 72 | 2c 20 77 68 69 63 68 20 |modifier|, which |
|000016c0| 69 6e 20 65 66 66 65 63 | 74 20 74 65 6c 6c 73 20 |in effec|t tells |
|000016d0| 50 65 72 6c 20 74 6f 20 | 70 72 65 74 65 6e 64 20 |Perl to |pretend |
|000016e0| 74 68 65 20 73 74 72 69 | 6e 67 20 69 73 20 61 20 |the stri|ng is a |
|000016f0| 73 69 6e 67 6c 65 20 6c | 69 6e 65 2d 2d 65 76 65 |single l|ine--eve|
|00001700| 6e 20 69 66 20 69 74 20 | 69 73 6e 27 74 2e 20 20 |n if it |isn't. |
|00001710| 54 68 65 20 07 6d 7d 3f | 0e bd 67 00 0e bd 67 00 |The .m}?|..g...g.|
|00001720| 00 00 00 00 2f 73 08 20 | 0e be 67 00 00 00 00 00 |..../s. |..g.....|
|00001730| 20 6d 6f 64 69 66 69 65 | 72 20 61 6c 73 6f 20 00 | modifie|r also .|
|00001740| 00 a8 00 00 a5 ac 00 00 | 40 c4 f1 07 19 27 ee ff |........|@....'..|
|00001750| f9 55 ee ff 20 22 00 00 | 6f 76 65 72 72 69 64 65 |.U.. "..|override|
|00001760| 73 20 74 68 65 20 73 65 | 74 74 69 6e 67 20 6f 66 |s the se|tting of|
|00001770| 20 07 05 05 0e bf 67 00 | 0e bf 67 00 00 00 00 00 | .....g.|..g.....|
|00001780| 24 2a 08 00 0e c0 67 00 | 00 00 00 00 2c 20 69 6e |$*....g.|...., in|
|00001790| 20 63 61 73 65 20 79 6f | 75 20 68 61 76 65 20 73 | case yo|u have s|
|000017a0| 6f 6d 65 20 28 62 61 64 | 6c 79 20 62 65 68 61 76 |ome (bad|ly behav|
|000017b0| 65 64 29 20 6f 6c 64 65 | 72 20 63 6f 64 65 20 74 |ed) olde|r code t|
|000017c0| 68 61 74 20 73 65 74 73 | 20 69 74 20 69 6e 20 61 |hat sets| it in a|
|000017d0| 6e 6f 74 68 65 72 20 6d | 6f 64 75 6c 65 2e 0d 07 |nother m|odule...|
|000017e0| 14 c1 67 00 14 c1 67 00 | 00 00 00 00 00 ac 00 00 |..g...g.|........|
|000017f0| a5 78 00 00 40 fc b4 03 | 42 b8 ed ff 22 e7 ed ff |.x..@...|B..."...|
|00001800| 20 22 00 00 54 68 65 20 | 66 6f 6c 6c 6f 77 69 6e | "..The |followin|
|00001810| 67 20 73 74 61 6e 64 61 | 72 64 20 71 75 61 6e 74 |g standa|rd quant|
|00001820| 69 66 69 65 72 73 20 61 | 72 65 20 72 65 63 6f 67 |ifiers a|re recog|
|00001830| 6e 69 7a 65 64 3a 0d 08 | 14 00 00 00 00 00 00 00 |nized:..|........|
|00001840| 07 20 20 20 12 c2 67 00 | 12 c2 67 00 00 00 00 00 |. ..g.|..g.....|
|00001850| 07 20 20 20 0c c3 67 00 | 12 c2 67 00 0c c3 67 00 |. ..g.|..g...g.|
|00001860| 00 00 00 00 00 78 00 00 | 25 38 00 00 40 40 90 02 |.....x..|%8..@@..|
|00001870| 3b 51 ed ff 4b 78 ed ff | 70 1a 00 00 2a 20 20 20 |;Q..Kx..|p...* |
|00001880| 20 20 20 4d 61 74 63 68 | 20 30 20 6f 72 20 6d 6f | Match| 0 or mo|
|00001890| 72 65 20 74 69 6d 65 73 | 0d 00 00 00 00 38 00 00 |re times|.....8..|
|000018a0| 25 38 00 00 40 40 90 02 | 5b 22 ed ff 6b 49 ed ff |%8..@@..|["..kI..|
|000018b0| 70 1a 00 00 2b 20 20 20 | 20 20 20 4d 61 74 63 68 |p...+ | Match|
|000018c0| 20 31 20 6f 72 20 6d 6f | 72 65 20 74 69 6d 65 73 | 1 or mo|re times|
|000018d0| 0d 00 00 00 00 38 00 00 | 25 34 00 00 40 f0 49 02 |.....8..|%4..@.I.|
|000018e0| 7b f3 ec ff 8b 1a ed ff | 70 1a 00 00 3f 20 20 20 |{.......|p...? |
|000018f0| 20 20 20 4d 61 74 63 68 | 20 31 20 6f 72 20 30 20 | Match| 1 or 0 |
|00001900| 74 69 6d 65 73 0d 00 00 | 00 34 00 00 25 38 00 00 |times...|.4..%8..|
|00001910| 40 40 90 02 9b c4 ec ff | ab eb ec ff 70 1a 00 00 |@@......|....p...|
|00001920| 7b 6e 7d 20 20 20 20 4d | 61 74 63 68 20 65 78 61 |{n} M|atch exa|
|00001930| 63 74 6c 79 20 6e 20 74 | 69 6d 65 73 0d 00 00 00 |ctly n t|imes....|
|00001940| 00 38 00 00 25 38 00 00 | 40 b0 a7 02 bb 95 ec ff |.8..%8..|@.......|
|00001950| cb bc ec ff 70 1a 00 00 | 7b 6e 2c 7d 20 20 20 4d |....p...|{n,} M|
|00001960| 61 74 63 68 20 61 74 20 | 6c 65 61 73 74 20 6e 20 |atch at |least n |
|00001970| 74 69 6d 65 73 0d 00 00 | 00 38 00 00 a5 74 00 00 |times...|.8...t..|
|00001980| 40 70 7c 04 db 66 ec ff | eb 8d ec ff 70 1a 00 00 |@p|..f..|....p...|
|00001990| 7b 6e 2c 6d 7d 20 20 4d | 61 74 63 68 20 61 74 20 |{n,m} M|atch at |
|000019a0| 6c 65 61 73 74 20 6e 20 | 62 75 74 20 6e 6f 74 20 |least n |but not |
|000019b0| 6d 6f 72 65 20 74 68 61 | 6e 20 6d 20 74 69 6d 65 |more tha|n m time|
|000019c0| 73 0d 08 73 0c c4 67 00 | 12 c2 67 00 00 00 00 00 |s..s..g.|..g.....|
|000019d0| 08 69 6e 6b 12 00 00 00 | 00 00 00 00 07 20 20 20 |.ink....|..... |
|000019e0| 18 c5 67 00 18 c5 67 00 | 00 00 00 00 00 74 00 00 |..g...g.|.....t..|
|000019f0| a5 24 00 00 40 00 00 00 | 4b 52 ec ff 0b 5f ec ff |.$..@...|KR..._..|
|00001a00| 00 00 00 00 0d 08 20 20 | 18 c6 67 00 00 00 00 00 |...... |..g.....|
|00001a10| 00 24 00 00 05 88 00 00 | 00 44 75 07 7b f9 eb ff |.$......|.Du.{...|
|00001a20| 5b 28 ec ff 20 22 00 00 | 28 49 66 20 61 20 63 75 |[(.. "..|(If a cu|
|00001a30| 72 6c 79 20 62 72 61 63 | 6b 65 74 20 6f 63 63 75 |rly brac|ket occu|
|00001a40| 72 73 20 69 6e 20 61 6e | 79 20 6f 74 68 65 72 20 |rs in an|y other |
|00001a50| 63 6f 6e 74 65 78 74 2c | 20 69 74 20 69 73 20 74 |context,| it is t|
|00001a60| 72 65 61 74 65 64 20 61 | 73 20 61 20 72 65 67 75 |reated a|s a regu|
|00001a70| 6c 61 72 20 63 68 61 72 | 61 63 74 65 72 2e 29 20 |lar char|acter.) |
|00001a80| 20 54 68 65 20 22 2a 22 | 20 6d 6f 64 69 66 69 65 | The "*"| modifie|
|00001a90| 72 20 69 73 20 00 00 00 | 00 88 00 00 85 cc 00 00 |r is ...|........|
|00001aa0| 00 dc 82 07 54 c1 eb ff | 34 f0 eb ff 20 22 00 00 |....T...|4... "..|
|00001ab0| 65 71 75 69 76 61 6c 65 | 6e 74 20 74 6f 20 07 65 |equivale|nt to .e|
|00001ac0| 0e c7 67 00 0e c7 67 00 | 00 00 00 00 7b 30 2c 7d |..g...g.|....{0,}|
|00001ad0| 08 61 70 20 0e c8 67 00 | 00 00 00 00 2c 20 74 68 |.ap ..g.|...., th|
|00001ae0| 65 20 22 2b 22 20 6d 6f | 64 69 66 69 65 72 20 74 |e "+" mo|difier t|
|00001af0| 6f 20 07 00 0e c9 67 00 | 0e c9 67 00 00 00 00 00 |o ....g.|..g.....|
|00001b00| 7b 31 2c 7d 08 00 00 00 | 0e ca 67 00 00 00 00 00 |{1,}....|..g.....|
|00001b10| 2c 20 61 6e 64 20 74 68 | 65 20 22 3f 22 20 6d 6f |, and th|e "?" mo|
|00001b20| 64 69 66 69 65 72 20 74 | 6f 20 07 00 0e cb 67 00 |difier t|o ....g.|
|00001b30| 0e cb 67 00 00 00 00 00 | 7b 30 2c 31 7d 08 61 6b |..g.....|{0,1}.ak|
|00001b40| 0e cc 67 00 00 00 00 00 | 2e 20 20 6e 20 61 6e 64 |..g.....|. n and|
|00001b50| 20 6d 20 61 72 65 20 6c | 69 6d 69 74 65 64 20 74 | m are l|imited t|
|00001b60| 6f 20 00 00 00 cc 00 00 | a5 48 00 00 40 c8 4d 02 |o ......|.H..@.M.|
|00001b70| 2d 89 eb ff 0d b8 eb ff | 20 22 00 00 69 6e 74 65 |-.......| "..inte|
|00001b80| 67 72 61 6c 20 76 61 6c | 75 65 73 20 6c 65 73 73 |gral val|ues less|
|00001b90| 20 74 68 61 6e 20 36 35 | 35 33 36 2e 0d 07 00 00 | than 65|536.....|
|00001ba0| 14 cd 67 00 14 cd 67 00 | 00 00 00 00 00 48 00 00 |..g...g.|.....H..|
|00001bb0| 05 84 00 00 00 68 87 07 | 56 1a eb ff 36 49 eb ff |.....h..|V...6I..|
|00001bc0| 20 22 00 00 42 79 20 64 | 65 66 61 75 6c 74 2c 20 | "..By d|efault, |
|00001bd0| 61 20 71 75 61 6e 74 69 | 66 69 65 64 20 73 75 62 |a quanti|fied sub|
|00001be0| 70 61 74 74 65 72 6e 20 | 69 73 20 22 67 72 65 65 |pattern |is "gree|
|00001bf0| 64 79 22 2c 20 74 68 61 | 74 20 69 73 2c 20 69 74 |dy", tha|t is, it|
|00001c00| 20 77 69 6c 6c 20 6d 61 | 74 63 68 20 61 73 20 6d | will ma|tch as m|
|00001c10| 61 6e 79 20 74 69 6d 65 | 73 20 61 73 20 70 6f 73 |any time|s as pos|
|00001c20| 73 69 62 6c 65 20 28 67 | 69 76 65 6e 20 61 20 00 |sible (g|iven a .|
|00001c30| 00 84 00 00 05 8c 00 00 | 00 18 d1 07 2f e2 ea ff |........|..../...|
|00001c40| 0f 11 eb ff 20 22 00 00 | 70 61 72 74 69 63 75 6c |.... "..|particul|
|00001c50| 61 72 20 73 74 61 72 74 | 69 6e 67 20 6c 6f 63 61 |ar start|ing loca|
|00001c60| 74 69 6f 6e 29 20 77 68 | 69 6c 65 20 73 74 69 6c |tion) wh|ile stil|
|00001c70| 6c 20 61 6c 6c 6f 77 69 | 6e 67 20 74 68 65 20 72 |l allowi|ng the r|
|00001c80| 65 73 74 20 6f 66 20 74 | 68 65 20 70 61 74 74 65 |est of t|he patte|
|00001c90| 72 6e 20 74 6f 20 6d 61 | 74 63 68 2e 20 20 49 66 |rn to ma|tch. If|
|00001ca0| 20 79 6f 75 20 77 61 6e | 74 20 69 74 20 74 6f 20 | you wan|t it to |
|00001cb0| 6d 61 74 63 68 20 74 68 | 65 20 00 00 00 8c 00 00 |match th|e ......|
|00001cc0| 05 84 00 00 00 44 d2 07 | 08 aa ea ff e8 d8 ea ff |.....D..|........|
|00001cd0| 20 22 00 00 6d 69 6e 69 | 6d 75 6d 20 6e 75 6d 62 | "..mini|mum numb|
|00001ce0| 65 72 20 6f 66 20 74 69 | 6d 65 73 20 70 6f 73 73 |er of ti|mes poss|
|00001cf0| 69 62 6c 65 2c 20 66 6f | 6c 6c 6f 77 20 74 68 65 |ible, fo|llow the|
|00001d00| 20 71 75 61 6e 74 69 66 | 69 65 72 20 77 69 74 68 | quantif|ier with|
|00001d10| 20 61 20 22 3f 22 2e 20 | 20 4e 6f 74 65 20 74 68 | a "?". | Note th|
|00001d20| 61 74 20 74 68 65 20 6d | 65 61 6e 69 6e 67 73 20 |at the m|eanings |
|00001d30| 64 6f 6e 27 74 20 63 68 | 61 6e 67 65 2c 20 00 00 |don't ch|ange, ..|
|00001d40| 00 84 00 00 a5 5c 00 00 | 40 98 8d 01 e1 71 ea ff |.....\..|@....q..|
|00001d50| c1 a0 ea ff 20 22 00 00 | 6a 75 73 74 20 74 68 65 |.... "..|just the|
|00001d60| 20 22 67 72 65 65 64 69 | 6e 65 73 73 22 3a 0d 08 | "greedi|ness":..|
|00001d70| 14 00 00 00 00 00 00 00 | 07 64 20 6e 12 ce 67 00 |........|.d n..g.|
|00001d80| 12 ce 67 00 00 00 00 00 | 07 ea 67 00 0c cf 67 00 |..g.....|..g...g.|
|00001d90| 12 ce 67 00 0c cf 67 00 | 00 00 00 00 00 5c 00 00 |..g...g.|.....\..|
|00001da0| 25 38 00 00 40 40 90 02 | da 0a ea ff ea 31 ea ff |%8..@@..|.....1..|
|00001db0| 70 1a 00 00 2a 3f 20 20 | 20 20 20 4d 61 74 63 68 |p...*? | Match|
|00001dc0| 20 30 20 6f 72 20 6d 6f | 72 65 20 74 69 6d 65 73 | 0 or mo|re times|
|00001dd0| 0d 00 00 00 00 38 00 00 | 25 38 00 00 40 40 90 02 |.....8..|%8..@@..|
|00001de0| fa db e9 ff 0a 03 ea ff | 70 1a 00 00 2b 3f 20 20 |........|p...+? |
|00001df0| 20 20 20 4d 61 74 63 68 | 20 31 20 6f 72 20 6d 6f | Match| 1 or mo|
|00001e00| 72 65 20 74 69 6d 65 73 | 0d 00 00 00 00 38 00 00 |re times|.....8..|
|00001e10| 25 34 00 00 40 80 32 02 | 1a ad e9 ff 2a d4 e9 ff |%4..@.2.|....*...|
|00001e20| 70 1a 00 00 3f 3f 20 20 | 20 20 20 4d 61 74 63 68 |p...?? | Match|
|00001e30| 20 30 20 6f 72 20 31 20 | 74 69 6d 65 0d 00 00 00 | 0 or 1 |time....|
|00001e40| 00 34 00 00 25 38 00 00 | 40 40 90 02 3a 7e e9 ff |.4..%8..|@@..:~..|
|00001e50| 4a a5 e9 ff 70 1a 00 00 | 7b 6e 7d 3f 20 20 20 4d |J...p...|{n}? M|
|00001e60| 61 74 63 68 20 65 78 61 | 63 74 6c 79 20 6e 20 74 |atch exa|ctly n t|
|00001e70| 69 6d 65 73 0d 00 00 00 | 00 38 00 00 25 38 00 00 |imes....|.8..%8..|
|00001e80| 40 b0 a7 02 5a 4f e9 ff | 6a 76 e9 ff 70 1a 00 00 |@...ZO..|jv..p...|
|00001e90| 7b 6e 2c 7d 3f 20 20 4d | 61 74 63 68 20 61 74 20 |{n,}? M|atch at |
|00001ea0| 6c 65 61 73 74 20 6e 20 | 74 69 6d 65 73 0d 00 00 |least n |times...|
|00001eb0| 00 38 00 00 a5 74 00 00 | 40 70 7c 04 7a 20 e9 ff |.8...t..|@p|.z ..|
|00001ec0| 8a 47 e9 ff 70 1a 00 00 | 7b 6e 2c 6d 7d 3f 20 4d |.G..p...|{n,m}? M|
|00001ed0| 61 74 63 68 20 61 74 20 | 6c 65 61 73 74 20 6e 20 |atch at |least n |
|00001ee0| 62 75 74 20 6e 6f 74 20 | 6d 6f 72 65 20 74 68 61 |but not |more tha|
|00001ef0| 6e 20 6d 20 74 69 6d 65 | 73 0d 08 00 0c d0 67 00 |n m time|s.....g.|
|00001f00| 12 ce 67 00 00 00 00 00 | 08 fa 67 00 12 00 00 00 |..g.....|..g.....|
|00001f10| 00 00 00 00 07 20 07 05 | 18 d1 67 00 18 d1 67 00 |..... ..|..g...g.|
|00001f20| 00 00 00 00 00 74 00 00 | a5 34 00 00 40 00 00 00 |.....t..|.4..@...|
|00001f30| ea 0b e9 ff aa 18 e9 ff | 00 00 00 00 0d 08 74 65 |........|......te|
|00001f40| 18 d2 67 00 00 00 00 00 | 07 20 28 74 14 d3 67 00 |..g.....|. (t..g.|
|00001f50| 14 d3 67 00 00 00 00 00 | 00 34 00 00 01 10 00 00 |..g.....|.4......|
|00001f60| 41 fc fa 05 00 00 00 00 | 00 10 00 00 02 18 00 00 |A.......|........|
|00001f70| 00 04 00 00 00 00 00 00 | 14 d3 67 00 00 00 00 00 |........|..g.....|
|00001f80| 00 18 00 00 a5 a4 00 00 | 40 fc fa 05 1e 45 e5 ff |........|@....E..|
|00001f90| fe 73 e5 ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |.s.. "..|........|
|00001fa0| 00 00 00 00 42 65 63 61 | 75 73 65 20 70 61 74 74 |....Beca|use patt|
|00001fb0| 65 72 6e 73 20 61 72 65 | 20 70 72 6f 63 65 73 73 |erns are| process|
|00001fc0| 65 64 20 61 73 20 64 6f | 75 62 6c 65 20 71 75 6f |ed as do|uble quo|
|00001fd0| 74 65 64 20 73 74 72 69 | 6e 67 73 2c 20 74 68 65 |ted stri|ngs, the|
|00001fe0| 20 66 6f 6c 6c 6f 77 69 | 6e 67 20 61 6c 73 6f 20 | followi|ng also |
|00001ff0| 77 6f 72 6b 3a 0d 08 00 | 14 00 00 00 00 00 00 00 |work:...|........|
|00002000| 07 00 00 00 12 d4 67 00 | 12 d4 67 00 00 00 00 00 |......g.|..g.....|
|00002010| 07 20 20 20 0c d5 67 00 | 12 d4 67 00 0c d5 67 00 |. ..g.|..g...g.|
|00002020| 00 00 00 00 00 a4 00 00 | 25 44 00 00 40 d0 ef 03 |........|%D..@...|
|00002030| 17 de e4 ff 27 05 e5 ff | 70 1a 00 00 5c 74 20 20 |....'...|p...\t |
|00002040| 20 20 20 20 20 20 20 20 | 74 61 62 20 20 20 20 20 | |tab |
|00002050| 20 20 20 20 20 20 20 20 | 20 20 20 20 20 20 28 48 | | (H|
|00002060| 54 2c 20 54 41 42 29 0d | 00 44 00 00 25 44 00 00 |T, TAB).|.D..%D..|
|00002070| 41 60 d8 03 37 af e4 ff | 47 d6 e4 ff 70 1a 00 00 |A`..7...|G...p...|
|00002080| 5c 6e 20 20 20 20 20 20 | 20 20 20 20 6e 65 77 6c |\n | newl|
|00002090| 69 6e 65 20 20 20 20 20 | 20 20 20 20 20 20 20 20 |ine | |
|000020a0| 20 20 28 4c 46 2c 20 4e | 4c 29 0d 00 00 44 00 00 | (LF, N|L)...D..|
|000020b0| 25 40 00 00 41 a0 7a 03 | 57 80 e4 ff 67 a7 e4 ff |%@..A.z.|W...g...|
|000020c0| 70 1a 00 00 5c 72 20 20 | 20 20 20 20 20 20 20 20 |p...\r | |
|000020d0| 72 65 74 75 72 6e 20 20 | 20 20 20 20 20 20 20 20 |return | |
|000020e0| 20 20 20 20 20 20 28 43 | 52 29 0d 00 00 40 00 00 | (C|R)...@..|
|000020f0| 25 40 00 00 41 a0 7a 03 | 77 51 e4 ff 87 78 e4 ff |%@..A.z.|wQ...x..|
|00002100| 70 1a 00 00 5c 66 20 20 | 20 20 20 20 20 20 20 20 |p...\f | |
|00002110| 66 6f 72 6d 20 66 65 65 | 64 20 20 20 20 20 20 20 |form fee|d |
|00002120| 20 20 20 20 20 20 28 46 | 46 29 0d 00 00 40 00 00 | (F|F)...@..|
|00002130| 25 40 00 00 41 10 92 03 | 97 22 e4 ff a7 49 e4 ff |%@..A...|."...I..|
|00002140| 70 1a 00 00 5c 61 20 20 | 20 20 20 20 20 20 20 20 |p...\a | |
|00002150| 61 6c 61 72 6d 20 28 62 | 65 6c 6c 29 20 20 20 20 |alarm (b|ell) |
|00002160| 20 20 20 20 20 20 28 42 | 45 4c 29 0d 00 40 00 00 | (B|EL)..@..|
|00002170| 25 40 00 00 41 10 92 03 | b7 f3 e3 ff c7 1a e4 ff |%@..A...|........|
|00002180| 70 1a 00 00 5c 65 20 20 | 20 20 20 20 20 20 20 20 |p...\e | |
|00002190| 65 73 63 61 70 65 20 28 | 74 68 69 6e 6b 20 74 72 |escape (|think tr|
|000021a0| 6f 66 66 29 20 20 28 45 | 53 43 29 0d 00 40 00 00 |off) (E|SC)..@..|
|000021b0| 25 44 00 00 40 60 d8 03 | d7 c4 e3 ff e7 eb e3 ff |%D..@`..|........|
|000021c0| 70 1a 00 00 5c 30 33 33 | 20 20 20 20 20 20 20 20 |p...\033| |
|000021d0| 6f 63 74 61 6c 20 63 68 | 61 72 20 28 74 68 69 6e |octal ch|ar (thin|
|000021e0| 6b 20 6f 66 20 61 20 50 | 44 50 2d 31 31 29 0d 00 |k of a P|DP-11)..|
|000021f0| 00 44 00 00 25 30 00 00 | 40 c0 d4 01 f7 95 e3 ff |.D..%0..|@.......|
|00002200| 07 bd e3 ff 70 1a 00 00 | 5c 78 31 42 20 20 20 20 |....p...|\x1B |
|00002210| 20 20 20 20 68 65 78 20 | 63 68 61 72 0d 00 00 00 | hex |char....|
|00002220| 00 30 00 00 25 34 00 00 | 40 80 32 02 17 67 e3 ff |.0..%4..|@.2..g..|
|00002230| 27 8e e3 ff 70 1a 00 00 | 5c 63 5b 20 20 20 20 20 |'...p...|\c[ |
|00002240| 20 20 20 20 63 6f 6e 74 | 72 6f 6c 20 63 68 61 72 | cont|rol char|
|00002250| 0d 00 00 00 00 34 00 00 | 25 44 00 00 40 60 d8 03 |.....4..|%D..@`..|
|00002260| 37 38 e3 ff 47 5f e3 ff | 70 1a 00 00 5c 6c 20 20 |78..G_..|p...\l |
|00002270| 20 20 20 20 20 20 20 20 | 6c 6f 77 65 72 63 61 73 | |lowercas|
|00002280| 65 20 6e 65 78 74 20 63 | 68 61 72 20 28 74 68 69 |e next c|har (thi|
|00002290| 6e 6b 20 76 69 29 0d 00 | 00 44 00 00 25 44 00 00 |nk vi)..|.D..%D..|
|000022a0| 40 60 d8 03 57 09 e3 ff | 67 30 e3 ff 70 1a 00 00 |@`..W...|g0..p...|
|000022b0| 5c 75 20 20 20 20 20 20 | 20 20 20 20 75 70 70 65 |\u | uppe|
|000022c0| 72 63 61 73 65 20 6e 65 | 78 74 20 63 68 61 72 20 |rcase ne|xt char |
|000022d0| 28 74 68 69 6e 6b 20 76 | 69 29 0d 00 00 44 00 00 |(think v|i)...D..|
|000022e0| 25 44 00 00 40 80 a9 03 | 77 da e2 ff 87 01 e3 ff |%D..@...|w.......|
|000022f0| 70 1a 00 00 5c 4c 20 20 | 20 20 20 20 20 20 20 20 |p...\L | |
|00002300| 6c 6f 77 65 72 63 61 73 | 65 20 74 69 6c 6c 20 5c |lowercas|e till \|
|00002310| 45 20 28 74 68 69 6e 6b | 20 76 69 29 0d 00 00 00 |E (think| vi)....|
|00002320| 00 44 00 00 25 44 00 00 | 40 80 a9 03 97 ab e2 ff |.D..%D..|@.......|
|00002330| a7 d2 e2 ff 70 1a 00 00 | 5c 55 20 20 20 20 20 20 |....p...|\U |
|00002340| 20 20 20 20 75 70 70 65 | 72 63 61 73 65 20 74 69 | uppe|rcase ti|
|00002350| 6c 6c 20 5c 45 20 28 74 | 68 69 6e 6b 20 76 69 29 |ll \E (t|hink vi)|
|00002360| 0d 00 00 00 00 44 00 00 | 25 48 00 00 40 40 07 04 |.....D..|%H..@@..|
|00002370| b7 7c e2 ff c7 a3 e2 ff | 70 1a 00 00 5c 45 20 20 |.|......|p...\E |
|00002380| 20 20 20 20 20 20 20 20 | 65 6e 64 20 63 61 73 65 | |end case|
|00002390| 20 6d 6f 64 69 66 69 63 | 61 74 69 6f 6e 20 28 74 | modific|ation (t|
|000023a0| 68 69 6e 6b 20 76 69 29 | 0d 00 00 00 00 48 00 00 |hink vi)|.....H..|
|000023b0| a5 74 00 00 40 90 4d 04 | d7 4d e2 ff e7 74 e2 ff |.t..@.M.|.M...t..|
|000023c0| 70 1a 00 00 5c 51 20 20 | 20 20 20 20 20 20 20 20 |p...\Q | |
|000023d0| 71 75 6f 74 65 20 72 65 | 67 65 78 70 20 6d 65 74 |quote re|gexp met|
|000023e0| 61 63 68 61 72 61 63 74 | 65 72 73 20 74 69 6c 6c |acharact|ers till|
|000023f0| 20 5c 45 0d 08 75 20 63 | 0c d6 67 00 12 d4 67 00 | \E..u c|..g...g.|
|00002400| 00 00 00 00 08 13 68 00 | 12 00 00 00 00 00 00 00 |......h.|........|
|00002410| 07 5c 6e 29 18 d7 67 00 | 18 d7 67 00 00 00 00 00 |.\n)..g.|..g.....|
|00002420| 00 74 00 00 a5 24 00 00 | 40 00 00 00 47 39 e2 ff |.t...$..|@...G9..|
|00002430| 07 46 e2 ff 00 00 00 00 | 0d 08 68 00 18 d8 67 00 |.F......|..h...g.|
|00002440| 00 00 00 00 00 24 00 00 | 85 e4 00 00 00 d8 bc 07 |.....$..|........|
|00002450| 77 e0 e1 ff 57 0f e2 ff | 20 22 00 00 49 66 20 07 |w...W...| "..If .|
|00002460| 0e d9 67 00 0e d9 67 00 | 00 00 00 00 75 73 65 20 |..g...g.|....use |
|00002470| 6c 6f 63 61 6c 65 08 05 | 0e da 67 00 00 00 00 00 |locale..|..g.....|
|00002480| 20 69 73 20 69 6e 20 65 | 66 66 65 63 74 2c 20 74 | is in e|ffect, t|
|00002490| 68 65 20 63 61 73 65 20 | 6d 61 70 20 75 73 65 64 |he case |map used|
|000024a0| 20 62 79 20 07 6e 20 74 | 0e db 67 00 0e db 67 00 | by .n t|..g...g.|
|000024b0| 00 00 00 00 5c 6c 08 52 | 0e dc 67 00 00 00 00 00 |....\l.R|..g.....|
|000024c0| 2c 20 07 2d 0e dd 67 00 | 0e dd 67 00 00 00 00 00 |, .-..g.|..g.....|
|000024d0| 5c 4c 08 20 0e de 67 00 | 00 00 00 00 2c 20 07 74 |\L. ..g.|...., .t|
|000024e0| 0e df 67 00 0e df 67 00 | 00 00 00 00 5c 75 08 00 |..g...g.|....\u..|
|000024f0| 0e e0 67 00 00 00 00 00 | 20 61 6e 64 20 3c 5c 55 |..g.....| and <\U|
|00002500| 3e 20 69 73 20 74 61 6b | 65 6e 20 66 72 6f 6d 20 |> is tak|en from |
|00002510| 74 68 65 20 63 75 72 72 | 65 6e 74 20 6c 6f 63 61 |the curr|ent loca|
|00002520| 6c 65 2e 20 20 00 00 00 | 00 e4 00 00 a5 5c 00 00 |le. ...|.....\..|
|00002530| 40 14 f9 01 50 a8 e1 ff | 30 d7 e1 ff 20 22 00 00 |@...P...|0... "..|
|00002540| 53 65 65 20 74 68 65 20 | 63 68 61 70 74 65 72 20 |See the |chapter |
|00002550| 07 79 6f 75 10 e1 67 00 | 10 e1 67 00 00 00 00 00 |.you..g.|..g.....|
|00002560| 70 65 72 6c 6c 6f 63 61 | 6c 65 08 68 10 00 00 00 |perlloca|le.h....|
|00002570| 00 00 00 00 2e 0d 07 74 | 14 e2 67 00 14 e2 67 00 |.......t|..g...g.|
|00002580| 00 00 00 00 00 5c 00 00 | a5 70 00 00 40 84 d6 02 |.....\..|.p..@...|
|00002590| 79 39 e1 ff 59 68 e1 ff | 20 22 00 00 49 6e 20 61 |y9..Yh..| "..In a|
|000025a0| 64 64 69 74 69 6f 6e 2c | 20 50 65 72 6c 20 64 65 |ddition,| Perl de|
|000025b0| 66 69 6e 65 73 20 74 68 | 65 20 66 6f 6c 6c 6f 77 |fines th|e follow|
|000025c0| 69 6e 67 3a 0d 08 65 6e | 14 00 00 00 00 00 00 00 |ing:..en|........|
|000025d0| 07 63 74 75 12 e3 67 00 | 12 e3 67 00 00 00 00 00 |.ctu..g.|..g.....|
|000025e0| 07 68 65 72 0c e4 67 00 | 12 e3 67 00 0c e4 67 00 |.her..g.|..g...g.|
|000025f0| 00 00 00 00 00 70 00 00 | 25 50 00 00 40 c0 c2 04 |.....p..|%P..@...|
|00002600| 72 d2 e0 ff 82 f9 e0 ff | 70 1a 00 00 5c 77 20 20 |r.......|p...\w |
|00002610| 4d 61 74 63 68 20 61 20 | 22 77 6f 72 64 22 20 63 |Match a |"word" c|
|00002620| 68 61 72 61 63 74 65 72 | 20 28 61 6c 70 68 61 6e |haracter| (alphan|
|00002630| 75 6d 65 72 69 63 20 70 | 6c 75 73 20 22 5f 22 29 |umeric p|lus "_")|
|00002640| 0d 00 00 00 00 50 00 00 | 25 38 00 00 40 20 bf 02 |.....P..|%8..@ ..|
|00002650| 92 a3 e0 ff a2 ca e0 ff | 70 1a 00 00 5c 57 20 20 |........|p...\W |
|00002660| 4d 61 74 63 68 20 61 20 | 6e 6f 6e 2d 77 6f 72 64 |Match a |non-word|
|00002670| 20 63 68 61 72 61 63 74 | 65 72 0d 00 00 38 00 00 | charact|er...8..|
|00002680| 25 3c 00 00 40 00 ee 02 | b2 74 e0 ff c2 9b e0 ff |%<..@...|.t......|
|00002690| 70 1a 00 00 5c 73 20 20 | 4d 61 74 63 68 20 61 20 |p...\s |Match a |
|000026a0| 77 68 69 74 65 73 70 61 | 63 65 20 63 68 61 72 61 |whitespa|ce chara|
|000026b0| 63 74 65 72 0d 00 00 00 | 00 3c 00 00 25 40 00 00 |cter....|.<..%@..|
|000026c0| 40 c0 4b 03 d2 45 e0 ff | e2 6c e0 ff 70 1a 00 00 |@.K..E..|.l..p...|
|000026d0| 5c 53 20 20 4d 61 74 63 | 68 20 61 20 6e 6f 6e 2d |\S Matc|h a non-|
|000026e0| 77 68 69 74 65 73 70 61 | 63 65 20 63 68 61 72 61 |whitespa|ce chara|
|000026f0| 63 74 65 72 0d 00 00 00 | 00 40 00 00 25 34 00 00 |cter....|.@..%4..|
|00002700| 40 d0 78 02 f2 16 e0 ff | 02 3e e0 ff 70 1a 00 00 |@.x.....|.>..p...|
|00002710| 5c 64 20 20 4d 61 74 63 | 68 20 61 20 64 69 67 69 |\d Matc|h a digi|
|00002720| 74 20 63 68 61 72 61 63 | 74 65 72 0d 00 34 00 00 |t charac|ter..4..|
|00002730| a5 64 00 00 40 90 d6 02 | 12 e8 df ff 22 0f e0 ff |.d..@...|...."...|
|00002740| 70 1a 00 00 5c 44 20 20 | 4d 61 74 63 68 20 61 20 |p...\D |Match a |
|00002750| 6e 6f 6e 2d 64 69 67 69 | 74 20 63 68 61 72 61 63 |non-digi|t charac|
|00002760| 74 65 72 0d 08 69 6c 65 | 0c e5 67 00 12 e3 67 00 |ter..ile|..g...g.|
|00002770| 00 00 00 00 08 20 6e 6f | 12 00 00 00 00 00 00 00 |..... no|........|
|00002780| 07 6e 20 6f 18 e6 67 00 | 18 e6 67 00 00 00 00 00 |.n o..g.|..g.....|
|00002790| 00 64 00 00 a5 24 00 00 | 40 00 00 00 82 d3 df ff |.d...$..|@.......|
|000027a0| 42 e0 df ff 00 00 00 00 | 0d 08 6e 74 18 e7 67 00 |B.......|..nt..g.|
|000027b0| 00 00 00 00 00 24 00 00 | 85 98 00 00 00 a0 b5 07 |.....$..|........|
|000027c0| b2 7a df ff 92 a9 df ff | 20 22 00 00 4e 6f 74 65 |.z......| "..Note|
|000027d0| 20 74 68 61 74 20 07 53 | 0e e8 67 00 0e e8 67 00 | that .S|..g...g.|
|000027e0| 00 00 00 00 5c 77 08 62 | 0e e9 67 00 00 00 00 00 |....\w.b|..g.....|
|000027f0| 20 6d 61 74 63 68 65 73 | 20 61 20 73 69 6e 67 6c | matches| a singl|
|00002800| 65 20 61 6c 70 68 61 6e | 75 6d 65 72 69 63 20 63 |e alphan|umeric c|
|00002810| 68 61 72 61 63 74 65 72 | 2c 20 6e 6f 74 20 61 20 |haracter|, not a |
|00002820| 77 68 6f 6c 65 20 77 6f | 72 64 2e 20 20 54 6f 20 |whole wo|rd. To |
|00002830| 6d 61 74 63 68 20 61 20 | 77 6f 72 64 20 79 6f 75 |match a |word you|
|00002840| 27 64 20 6e 65 65 64 20 | 74 6f 20 00 00 98 00 00 |'d need |to .....|
|00002850| 85 cc 00 00 00 d4 bd 07 | 8b 42 df ff 6b 71 df ff |........|.B..kq..|
|00002860| 20 22 00 00 73 61 79 20 | 07 20 74 6f 0e ea 67 00 | "..say |. to..g.|
|00002870| 0e ea 67 00 00 00 00 00 | 5c 77 2b 08 0e eb 67 00 |..g.....|\w+...g.|
|00002880| 00 00 00 00 2e 20 20 49 | 66 20 07 20 0e ec 67 00 |..... I|f . ..g.|
|00002890| 0e ec 67 00 00 00 00 00 | 75 73 65 20 6c 6f 63 61 |..g.....|use loca|
|000028a0| 6c 65 08 68 0e ed 67 00 | 00 00 00 00 20 69 73 20 |le.h..g.|.... is |
|000028b0| 69 6e 20 65 66 66 65 63 | 74 2c 20 74 68 65 20 6c |in effec|t, the l|
|000028c0| 69 73 74 20 6f 66 20 61 | 6c 70 68 61 62 65 74 69 |ist of a|lphabeti|
|000028d0| 63 20 63 68 61 72 61 63 | 74 65 72 73 20 67 65 6e |c charac|ters gen|
|000028e0| 65 72 61 74 65 64 20 62 | 79 20 07 20 0e ee 67 00 |erated b|y . ..g.|
|000028f0| 0e ee 67 00 00 00 00 00 | 5c 77 08 20 0e ef 67 00 |..g.....|\w. ..g.|
|00002900| 00 00 00 00 20 69 73 20 | 74 61 6b 65 6e 20 66 72 |.... is |taken fr|
|00002910| 6f 6d 20 74 68 65 20 00 | 00 cc 00 00 85 28 01 00 |om the .|.....(..|
|00002920| 00 1c 76 07 64 0a df ff | 44 39 df ff 20 22 00 00 |..v.d...|D9.. "..|
|00002930| 63 75 72 72 65 6e 74 20 | 6c 6f 63 61 6c 65 2e 20 |current |locale. |
|00002940| 20 53 65 65 20 74 68 65 | 20 63 68 61 70 74 65 72 | See the| chapter|
|00002950| 20 07 6e 2c 10 f0 67 00 | 10 f0 67 00 00 00 00 00 | .n,..g.|..g.....|
|00002960| 70 65 72 6c 6c 6f 63 61 | 6c 65 08 2e 10 00 00 00 |perlloca|le......|
|00002970| 00 00 00 00 2e 20 59 6f | 75 20 6d 61 79 20 75 73 |..... Yo|u may us|
|00002980| 65 20 07 61 0e f1 67 00 | 0e f1 67 00 00 00 00 00 |e .a..g.|..g.....|
|00002990| 5c 77 08 75 0e f2 67 00 | 00 00 00 00 2c 20 07 79 |\w.u..g.|...., .y|
|000029a0| 0e f3 67 00 0e f3 67 00 | 00 00 00 00 5c 57 08 61 |..g...g.|....\W.a|
|000029b0| 0e f4 67 00 00 00 00 00 | 2c 20 07 6e 0e f5 67 00 |..g.....|, .n..g.|
|000029c0| 0e f5 67 00 00 00 00 00 | 5c 73 08 65 0e f6 67 00 |..g.....|\s.e..g.|
|000029d0| 00 00 00 00 2c 20 07 20 | 0e f7 67 00 0e f7 67 00 |...., . |..g...g.|
|000029e0| 00 00 00 00 5c 53 08 65 | 0e f8 67 00 00 00 00 00 |....\S.e|..g.....|
|000029f0| 2c 20 07 69 0e f9 67 00 | 0e f9 67 00 00 00 00 00 |, .i..g.|..g.....|
|00002a00| 5c 64 08 57 0e fa 67 00 | 00 00 00 00 2c 20 61 6e |\d.W..g.|...., an|
|00002a10| 64 20 07 72 0e fb 67 00 | 0e fb 67 00 00 00 00 00 |d .r..g.|..g.....|
|00002a20| 5c 44 08 63 0e fc 67 00 | 00 00 00 00 20 77 69 74 |\D.c..g.|.... wit|
|00002a30| 68 69 6e 20 63 68 61 72 | 61 63 74 65 72 20 00 00 |hin char|acter ..|
|00002a40| 00 28 01 00 a5 54 00 00 | 40 6c 42 03 3d d2 de ff |.(...T..|@lB.=...|
|00002a50| 1d 01 df ff 20 22 00 00 | 63 6c 61 73 73 65 73 20 |.... "..|classes |
|00002a60| 28 74 68 6f 75 67 68 20 | 6e 6f 74 20 61 73 20 65 |(though |not as e|
|00002a70| 69 74 68 65 72 20 65 6e | 64 20 6f 66 20 61 20 72 |ither en|d of a r|
|00002a80| 61 6e 67 65 29 2e 0d 07 | 14 fd 67 00 14 fd 67 00 |ange)...|..g...g.|
|00002a90| 00 00 00 00 00 54 00 00 | a5 78 00 00 40 08 8e 03 |.....T..|.x..@...|
|00002aa0| 66 63 de ff 46 92 de ff | 20 22 00 00 50 65 72 6c |fc..F...| "..Perl|
|00002ab0| 20 64 65 66 69 6e 65 73 | 20 74 68 65 20 66 6f 6c | defines| the fol|
|00002ac0| 6c 6f 77 69 6e 67 20 7a | 65 72 6f 2d 77 69 64 74 |lowing z|ero-widt|
|00002ad0| 68 20 61 73 73 65 72 74 | 69 6f 6e 73 3a 0d 08 6e |h assert|ions:..n|
|00002ae0| 14 00 00 00 00 00 00 00 | 07 20 73 61 12 fe 67 00 |........|. sa..g.|
|00002af0| 12 fe 67 00 00 00 00 00 | 07 20 74 61 0c ff 67 00 |..g.....|. ta..g.|
|00002b00| 12 fe 67 00 0c ff 67 00 | 00 00 00 00 00 78 00 00 |..g...g.|.....x..|
|00002b10| 25 34 00 00 40 f0 49 02 | 5f fc dd ff 6f 23 de ff |%4..@.I.|_...o#..|
|00002b20| 70 1a 00 00 5c 62 20 20 | 4d 61 74 63 68 20 61 20 |p...\b |Match a |
|00002b30| 77 6f 72 64 20 62 6f 75 | 6e 64 61 72 79 0d 00 00 |word bou|ndary...|
|00002b40| 00 34 00 00 25 38 00 00 | 40 90 d6 02 7f cd dd ff |.4..%8..|@.......|
|00002b50| 8f f4 dd ff 70 1a 00 00 | 5c 42 20 20 4d 61 74 63 |....p...|\B Matc|
|00002b60| 68 20 61 20 6e 6f 6e 2d | 28 77 6f 72 64 20 62 6f |h a non-|(word bo|
|00002b70| 75 6e 64 61 72 79 29 0d | 00 38 00 00 25 40 00 00 |undary).|.8..%@..|
|00002b80| 40 30 63 03 9f 9e dd ff | af c5 dd ff 70 1a 00 00 |@0c.....|....p...|
|00002b90| 5c 41 20 20 4d 61 74 63 | 68 20 61 74 20 6f 6e 6c |\A Matc|h at onl|
|00002ba0| 79 20 62 65 67 69 6e 6e | 69 6e 67 20 6f 66 20 73 |y beginn|ing of s|
|00002bb0| 74 72 69 6e 67 0d 00 00 | 00 40 00 00 25 58 00 00 |tring...|.@..%X..|
|00002bc0| 40 20 ad 05 bf 6f dd ff | cf 96 dd ff 70 1a 00 00 |@ ...o..|....p...|
|00002bd0| 5c 5a 20 20 4d 61 74 63 | 68 20 61 74 20 6f 6e 6c |\Z Matc|h at onl|
|00002be0| 79 20 65 6e 64 20 6f 66 | 20 73 74 72 69 6e 67 20 |y end of| string |
|00002bf0| 28 6f 72 20 62 65 66 6f | 72 65 20 6e 65 77 6c 69 |(or befo|re newli|
|00002c00| 6e 65 20 61 74 20 74 68 | 65 20 65 6e 64 29 0d 00 |ne at th|e end)..|
|00002c10| 00 58 00 00 a5 84 00 00 | 40 00 dc 05 df 40 dd ff |.X......|@....@..|
|00002c20| ef 67 dd ff 70 1a 00 00 | 5c 47 20 20 4d 61 74 63 |.g..p...|\G Matc|
|00002c30| 68 20 6f 6e 6c 79 20 77 | 68 65 72 65 20 70 72 65 |h only w|here pre|
|00002c40| 76 69 6f 75 73 20 6d 2f | 2f 67 20 6c 65 66 74 20 |vious m/|/g left |
|00002c50| 6f 66 66 20 28 77 6f 72 | 6b 73 20 6f 6e 6c 79 20 |off (wor|ks only |
|00002c60| 77 69 74 68 20 2f 67 29 | 0d 08 74 68 0c 00 68 00 |with /g)|..th..h.|
|00002c70| 12 fe 67 00 00 00 00 00 | 08 65 20 6d 12 00 00 00 |..g.....|.e m....|
|00002c80| 00 00 00 00 07 72 69 6e | 18 01 68 00 18 01 68 00 |.....rin|..h...h.|
|00002c90| 00 00 00 00 00 84 00 00 | a5 24 00 00 40 00 00 00 |........|.$..@...|
|00002ca0| 4f 2c dd ff 0f 39 dd ff | 00 00 00 00 0d 08 00 00 |O,...9..|........|
|00002cb0| 18 02 68 00 00 00 00 00 | 00 24 00 00 85 d0 00 00 |..h.....|.$......|
|00002cc0| 00 c4 cd 07 7f d3 dc ff | 5f 02 dd ff 20 22 00 00 |........|_... "..|
|00002cd0| 41 20 77 6f 72 64 20 62 | 6f 75 6e 64 61 72 79 20 |A word b|oundary |
|00002ce0| 28 07 6d 70 0e 03 68 00 | 0e 03 68 00 00 00 00 00 |(.mp..h.|..h.....|
|00002cf0| 5c 62 08 00 0e 04 68 00 | 00 00 00 00 29 20 69 73 |\b....h.|....) is|
|00002d00| 20 64 65 66 69 6e 65 64 | 20 61 73 20 61 20 73 70 | defined| as a sp|
|00002d10| 6f 74 20 62 65 74 77 65 | 65 6e 20 74 77 6f 20 63 |ot betwe|en two c|
|00002d20| 68 61 72 61 63 74 65 72 | 73 20 74 68 61 74 20 68 |haracter|s that h|
|00002d30| 61 73 20 61 20 07 20 20 | 0e 05 68 00 0e 05 68 00 |as a . |..h...h.|
|00002d40| 00 00 00 00 5c 77 08 6f | 0e 06 68 00 00 00 00 00 |....\w.o|..h.....|
|00002d50| 20 6f 6e 20 6f 6e 65 20 | 73 69 64 65 20 6f 66 20 | on one |side of |
|00002d60| 69 74 20 61 6e 64 20 61 | 20 07 05 05 0e 07 68 00 |it and a| .....h.|
|00002d70| 0e 07 68 00 00 00 00 00 | 5c 57 08 05 0e 08 68 00 |..h.....|\W....h.|
|00002d80| 00 00 00 00 20 00 00 00 | 00 d0 00 00 05 88 00 00 |.... ...|........|
|00002d90| 00 84 bc 07 58 9b dc ff | 38 ca dc ff 20 22 00 00 |....X...|8... "..|
|00002da0| 6f 6e 20 74 68 65 20 6f | 74 68 65 72 20 73 69 64 |on the o|ther sid|
|00002db0| 65 20 6f 66 20 69 74 20 | 28 69 6e 20 65 69 74 68 |e of it |(in eith|
|00002dc0| 65 72 20 6f 72 64 65 72 | 29 2c 20 63 6f 75 6e 74 |er order|), count|
|00002dd0| 69 6e 67 20 74 68 65 20 | 69 6d 61 67 69 6e 61 72 |ing the |imaginar|
|00002de0| 79 20 63 68 61 72 61 63 | 74 65 72 73 20 6f 66 66 |y charac|ters off|
|00002df0| 20 74 68 65 20 62 65 67 | 69 6e 6e 69 6e 67 20 61 | the beg|inning a|
|00002e00| 6e 64 20 65 6e 64 20 6f | 66 20 74 68 65 20 00 00 |nd end o|f the ..|
|00002e10| 00 88 00 00 85 b8 00 00 | 00 d8 c5 07 31 63 dc ff |........|....1c..|
|00002e20| 11 92 dc ff 20 22 00 00 | 73 74 72 69 6e 67 20 61 |.... "..|string a|
|00002e30| 73 20 6d 61 74 63 68 69 | 6e 67 20 61 20 07 73 65 |s matchi|ng a .se|
|00002e40| 0e 09 68 00 0e 09 68 00 | 00 00 00 00 5c 57 08 64 |..h...h.|....\W.d|
|00002e50| 0e 0a 68 00 00 00 00 00 | 2e 20 20 28 57 69 74 68 |..h.....|. (With|
|00002e60| 69 6e 20 63 68 61 72 61 | 63 74 65 72 20 63 6c 61 |in chara|cter cla|
|00002e70| 73 73 65 73 20 07 07 05 | 0e 0b 68 00 0e 0b 68 00 |sses ...|..h...h.|
|00002e80| 00 00 00 00 5c 62 08 05 | 0e 0c 68 00 00 00 00 00 |....\b..|..h.....|
|00002e90| 20 72 65 70 72 65 73 65 | 6e 74 73 20 62 61 63 6b | represe|nts back|
|00002ea0| 73 70 61 63 65 20 72 61 | 74 68 65 72 20 74 68 61 |space ra|ther tha|
|00002eb0| 6e 20 61 20 77 6f 72 64 | 20 62 6f 75 6e 64 61 72 |n a word| boundar|
|00002ec0| 79 2e 29 20 20 00 00 00 | 00 b8 00 00 85 d0 00 00 |y.) ...|........|
|00002ed0| 00 d4 cc 07 0a 2b dc ff | ea 59 dc ff 20 22 00 00 |.....+..|.Y.. "..|
|00002ee0| 54 68 65 20 07 61 63 68 | 0e 0d 68 00 0e 0d 68 00 |The .ach|..h...h.|
|00002ef0| 00 00 00 00 5c 41 08 65 | 0e 0e 68 00 00 00 00 00 |....\A.e|..h.....|
|00002f00| 20 61 6e 64 20 07 20 63 | 0e 0f 68 00 0e 0f 68 00 | and . c|..h...h.|
|00002f10| 00 00 00 00 5c 5a 08 6f | 0e 10 68 00 00 00 00 00 |....\Z.o|..h.....|
|00002f20| 20 61 72 65 20 6a 75 73 | 74 20 6c 69 6b 65 20 22 | are jus|t like "|
|00002f30| 5e 22 20 61 6e 64 20 22 | 24 22 20 65 78 63 65 70 |^" and "|$" excep|
|00002f40| 74 20 74 68 61 74 20 74 | 68 65 79 20 77 6f 6e 27 |t that t|hey won'|
|00002f50| 74 20 6d 61 74 63 68 20 | 6d 75 6c 74 69 70 6c 65 |t match |multiple|
|00002f60| 20 74 69 6d 65 73 20 77 | 68 65 6e 20 74 68 65 20 | times w|hen the |
|00002f70| 07 50 65 72 0e 11 68 00 | 0e 11 68 00 00 00 00 00 |.Per..h.|..h.....|
|00002f80| 2f 6d 08 73 0e 12 68 00 | 00 00 00 00 20 6d 6f 64 |/m.s..h.|.... mod|
|00002f90| 69 66 69 65 72 20 00 00 | 00 d0 00 00 05 88 00 00 |ifier ..|........|
|00002fa0| 00 b4 d7 07 e3 f2 db ff | c3 21 dc ff 20 22 00 00 |........|.!.. "..|
|00002fb0| 69 73 20 75 73 65 64 2c | 20 77 68 69 6c 65 20 22 |is used,| while "|
|00002fc0| 5e 22 20 61 6e 64 20 22 | 24 22 20 77 69 6c 6c 20 |^" and "|$" will |
|00002fd0| 6d 61 74 63 68 20 61 74 | 20 65 76 65 72 79 20 69 |match at| every i|
|00002fe0| 6e 74 65 72 6e 61 6c 20 | 6c 69 6e 65 20 62 6f 75 |nternal |line bou|
|00002ff0| 6e 64 61 72 79 2e 20 20 | 54 6f 20 6d 61 74 63 68 |ndary. |To match|
|00003000| 20 74 68 65 20 61 63 74 | 75 61 6c 20 65 6e 64 20 | the act|ual end |
|00003010| 6f 66 20 74 68 65 20 73 | 74 72 69 6e 67 2c 20 00 |of the s|tring, .|
|00003020| 00 88 00 00 85 ac 00 00 | 00 a8 77 07 bc ba db ff |........|..w.....|
|00003030| 9c e9 db ff 20 22 00 00 | 6e 6f 74 20 69 67 6e 6f |.... "..|not igno|
|00003040| 72 69 6e 67 20 6e 65 77 | 6c 69 6e 65 2c 20 79 6f |ring new|line, yo|
|00003050| 75 20 63 61 6e 20 75 73 | 65 20 07 69 0e 13 68 00 |u can us|e .i..h.|
|00003060| 0e 13 68 00 00 00 00 00 | 5c 5a 28 3f 21 5c 6e 29 |..h.....|\Z(?!\n)|
|00003070| 08 6d 70 6c 0e 14 68 00 | 00 00 00 00 2e 20 20 54 |.mpl..h.|..... T|
|00003080| 68 65 20 07 0e 15 68 00 | 0e 15 68 00 00 00 00 00 |he ...h.|..h.....|
|00003090| 5c 47 08 00 0e 16 68 00 | 00 00 00 00 20 61 73 73 |\G....h.|.... ass|
|000030a0| 65 72 74 69 6f 6e 20 63 | 61 6e 20 62 65 20 75 73 |ertion c|an be us|
|000030b0| 65 64 20 74 6f 20 63 68 | 61 69 6e 20 67 6c 6f 62 |ed to ch|ain glob|
|000030c0| 61 6c 20 6d 61 74 63 68 | 65 73 20 00 00 ac 00 00 |al match|es .....|
|000030d0| a5 ac 00 00 40 30 4d 07 | 95 82 db ff 75 b1 db ff |....@0M.|....u...|
|000030e0| 20 22 00 00 28 75 73 69 | 6e 67 20 07 0e 17 68 00 | "..(usi|ng ...h.|
|000030f0| 0e 17 68 00 00 00 00 00 | 6d 2f 2f 67 08 20 6d 61 |..h.....|m//g. ma|
|00003100| 0e 18 68 00 00 00 00 00 | 29 2c 20 61 73 20 64 65 |..h.....|), as de|
|00003110| 73 63 72 69 62 65 64 20 | 69 6e 20 74 68 65 20 73 |scribed |in the s|
|00003120| 65 63 74 69 6f 6e 20 6f | 6e 20 22 52 65 67 65 78 |ection o|n "Regex|
|00003130| 70 20 51 75 6f 74 65 2d | 4c 69 6b 65 20 4f 70 65 |p Quote-|Like Ope|
|00003140| 72 61 74 6f 72 73 22 20 | 69 6e 20 74 68 65 20 63 |rators" |in the c|
|00003150| 68 61 70 74 65 72 20 07 | 10 19 68 00 10 19 68 00 |hapter .|..h...h.|
|00003160| 00 00 00 00 70 65 72 6c | 6f 70 08 6c 10 00 00 00 |....perl|op.l....|
|00003170| 00 00 00 00 2e 0d 00 00 | 00 ac 00 00 85 98 00 00 |........|........|
|00003180| 00 78 cb 07 be 13 db ff | 9e 42 db ff 20 22 00 00 |.x......|.B.. "..|
|00003190| 49 74 20 69 73 20 61 6c | 73 6f 20 75 73 65 66 75 |It is al|so usefu|
|000031a0| 6c 20 77 68 65 6e 20 77 | 72 69 74 69 6e 67 20 07 |l when w|riting .|
|000031b0| 0e 1a 68 00 0e 1a 68 00 | 00 00 00 00 6c 65 78 08 |..h...h.|....lex.|
|000031c0| 0e 1b 68 00 00 00 00 00 | 2d 6c 69 6b 65 20 73 63 |..h.....|-like sc|
|000031d0| 61 6e 6e 65 72 73 2c 20 | 77 68 65 6e 20 79 6f 75 |anners, |when you|
|000031e0| 20 68 61 76 65 20 73 65 | 76 65 72 61 6c 20 72 65 | have se|veral re|
|000031f0| 67 65 78 70 73 20 77 68 | 69 63 68 20 79 6f 75 20 |gexps wh|ich you |
|00003200| 77 61 6e 74 20 74 6f 20 | 6d 61 74 63 68 20 00 00 |want to |match ..|
|00003210| 00 98 00 00 85 a0 00 00 | 00 68 cc 07 97 db da ff |........|.h......|
|00003220| 77 0a db ff 20 22 00 00 | 61 67 61 69 6e 73 74 20 |w... "..|against |
|00003230| 63 6f 6e 73 65 71 75 65 | 6e 74 20 73 75 62 73 74 |conseque|nt subst|
|00003240| 72 69 6e 67 73 20 6f 66 | 20 79 6f 75 72 20 73 74 |rings of| your st|
|00003250| 72 69 6e 67 2c 20 73 65 | 65 20 74 68 65 20 70 72 |ring, se|e the pr|
|00003260| 65 76 69 6f 75 73 20 72 | 65 66 65 72 65 6e 63 65 |evious r|eference|
|00003270| 2e 20 54 68 65 20 61 63 | 74 75 61 6c 20 6c 6f 63 |. The ac|tual loc|
|00003280| 61 74 69 6f 6e 20 77 68 | 65 72 65 20 07 97 67 00 |ation wh|ere ..g.|
|00003290| 0e 1c 68 00 0e 1c 68 00 | 00 00 00 00 5c 47 08 6e |..h...h.|....\G.n|
|000032a0| 0e 1d 68 00 00 00 00 00 | 20 77 69 6c 6c 20 00 00 |..h.....| will ..|
|000032b0| 00 a0 00 00 a5 b4 00 00 | 40 e8 a3 07 70 a3 da ff |........|@...p...|
|000032c0| 50 d2 da ff 20 22 00 00 | 6d 61 74 63 68 20 63 61 |P... "..|match ca|
|000032d0| 6e 20 61 6c 73 6f 20 62 | 65 20 69 6e 66 6c 75 65 |n also b|e influe|
|000032e0| 6e 63 65 64 20 62 79 20 | 75 73 69 6e 67 20 07 20 |nced by |using . |
|000032f0| 0e 1e 68 00 0e 1e 68 00 | 00 00 00 00 70 6f 73 28 |..h...h.|....pos(|
|00003300| 29 08 65 20 0e 1f 68 00 | 00 00 00 00 20 61 73 20 |).e ..h.|.... as |
|00003310| 61 6e 20 6c 76 61 6c 75 | 65 2e 20 20 53 65 65 20 |an lvalu|e. See |
|00003320| 74 68 65 20 22 70 6f 73 | 22 20 65 6e 74 72 79 20 |the "pos|" entry |
|00003330| 69 6e 20 74 68 65 20 63 | 68 61 70 74 65 72 20 07 |in the c|hapter .|
|00003340| 10 20 68 00 10 20 68 00 | 00 00 00 00 70 65 72 6c |. h.. h.|....perl|
|00003350| 66 75 6e 63 08 65 08 05 | 10 00 00 00 00 00 00 00 |func.e..|........|
|00003360| 2e 0d 00 00 00 b4 00 00 | 85 98 00 00 00 e4 a7 07 |........|........|
|00003370| 99 34 da ff 79 63 da ff | 20 22 00 00 57 68 65 6e |.4..yc..| "..When|
|00003380| 20 74 68 65 20 62 72 61 | 63 6b 65 74 69 6e 67 20 | the bra|cketing |
|00003390| 63 6f 6e 73 74 72 75 63 | 74 20 07 75 0e 21 68 00 |construc|t .u.!h.|
|000033a0| 0e 21 68 00 00 00 00 00 | 28 20 2e 2e 2e 20 29 08 |.!h.....|( ... ).|
|000033b0| 0e 22 68 00 00 00 00 00 | 20 69 73 20 75 73 65 64 |."h.....| is used|
|000033c0| 2c 20 5c 3c 64 69 67 69 | 74 3e 20 6d 61 74 63 68 |, \<digi|t> match|
|000033d0| 65 73 20 74 68 65 20 64 | 69 67 69 74 27 74 68 20 |es the d|igit'th |
|000033e0| 73 75 62 73 74 72 69 6e | 67 2e 20 20 4f 75 74 73 |substrin|g. Outs|
|000033f0| 69 64 65 20 6f 66 20 74 | 68 65 20 00 00 98 00 00 |ide of t|he .....|
|00003400| 01 10 00 00 00 20 e1 07 | 00 00 00 00 00 10 00 00 |..... ..|........|
|00003410| 02 14 00 00 9c 05 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003420| 00 14 00 00 05 98 00 00 | 00 20 e1 07 6d 45 d8 ff |........|. ..mE..|
|00003430| 4d 74 d8 ff 20 22 00 00 | 16 00 00 00 b0 fc 07 00 |Mt.. "..|........|
|00003440| 00 00 00 00 70 61 74 74 | 65 72 6e 2c 20 61 6c 77 |....patt|ern, alw|
|00003450| 61 79 73 20 75 73 65 20 | 22 24 22 20 69 6e 73 74 |ays use |"$" inst|
|00003460| 65 61 64 20 6f 66 20 22 | 5c 22 20 69 6e 20 66 72 |ead of "|\" in fr|
|00003470| 6f 6e 74 20 6f 66 20 74 | 68 65 20 64 69 67 69 74 |ont of t|he digit|
|00003480| 2e 20 20 28 57 68 69 6c | 65 20 74 68 65 20 5c 3c |. (Whil|e the \<|
|00003490| 64 69 67 69 74 3e 20 6e | 6f 74 61 74 69 6f 6e 20 |digit> n|otation |
|000034a0| 63 61 6e 20 6f 6e 20 72 | 61 72 65 20 6f 63 63 61 |can on r|are occa|
|000034b0| 73 69 6f 6e 20 00 00 00 | 00 98 00 00 05 80 00 00 |sion ...|........|
|000034c0| 00 d0 c1 07 46 0d d8 ff | 26 3c d8 ff 20 22 00 00 |....F...|&<.. "..|
|000034d0| 77 6f 72 6b 20 6f 75 74 | 73 69 64 65 20 74 68 65 |work out|side the|
|000034e0| 20 63 75 72 72 65 6e 74 | 20 70 61 74 74 65 72 6e | current| pattern|
|000034f0| 2c 20 74 68 69 73 20 73 | 68 6f 75 6c 64 20 6e 6f |, this s|hould no|
|00003500| 74 20 62 65 20 72 65 6c | 69 65 64 20 75 70 6f 6e |t be rel|ied upon|
|00003510| 2e 20 20 53 65 65 20 74 | 68 65 20 57 41 52 4e 49 |. See t|he WARNI|
|00003520| 4e 47 20 62 65 6c 6f 77 | 2e 29 20 54 68 65 20 73 |NG below|.) The s|
|00003530| 63 6f 70 65 20 6f 66 20 | 00 80 00 00 85 c8 00 00 |cope of |........|
|00003540| 00 18 98 07 1f d5 d7 ff | ff 03 d8 ff 20 22 00 00 |........|.... "..|
|00003550| 24 3c 64 69 67 69 74 3e | 20 28 61 6e 64 20 07 72 |$<digit>| (and .r|
|00003560| 0e 23 68 00 0e 23 68 00 | 00 00 00 00 24 60 08 00 |.#h..#h.|....$`..|
|00003570| 0e 24 68 00 00 00 00 00 | 2c 20 07 74 0e 25 68 00 |.$h.....|, .t.%h.|
|00003580| 0e 25 68 00 00 00 00 00 | 24 26 08 74 0e 26 68 00 |.%h.....|$&.t.&h.|
|00003590| 00 00 00 00 2c 20 61 6e | 64 20 07 72 0e 27 68 00 |...., an|d .r.'h.|
|000035a0| 0e 27 68 00 00 00 00 00 | 24 27 08 73 0e 28 68 00 |.'h.....|$'.s.(h.|
|000035b0| 00 00 00 00 29 20 65 78 | 74 65 6e 64 73 20 74 6f |....) ex|tends to|
|000035c0| 20 74 68 65 20 65 6e 64 | 20 6f 66 20 74 68 65 20 | the end| of the |
|000035d0| 65 6e 63 6c 6f 73 69 6e | 67 20 42 4c 4f 43 4b 20 |enclosin|g BLOCK |
|000035e0| 6f 72 20 65 76 61 6c 20 | 73 74 72 69 6e 67 2c 20 |or eval |string, |
|000035f0| 6f 72 20 74 6f 20 74 68 | 65 20 6e 65 78 74 20 00 |or to th|e next .|
|00003600| 00 c8 00 00 05 84 00 00 | 00 88 8e 07 f8 9c d7 ff |........|........|
|00003610| d8 cb d7 ff 20 22 00 00 | 73 75 63 63 65 73 73 66 |.... "..|successf|
|00003620| 75 6c 20 70 61 74 74 65 | 72 6e 20 6d 61 74 63 68 |ul patte|rn match|
|00003630| 2c 20 77 68 69 63 68 65 | 76 65 72 20 63 6f 6d 65 |, whiche|ver come|
|00003640| 73 20 66 69 72 73 74 2e | 20 20 49 66 20 79 6f 75 |s first.| If you|
|00003650| 20 77 61 6e 74 20 74 6f | 20 75 73 65 20 70 61 72 | want to| use par|
|00003660| 65 6e 74 68 65 73 65 73 | 20 74 6f 20 64 65 6c 69 |entheses| to deli|
|00003670| 6d 69 74 20 61 20 73 75 | 62 70 61 74 74 65 72 6e |mit a su|bpattern|
|00003680| 20 00 00 00 00 84 00 00 | 25 74 00 00 40 b8 f9 05 | .......|%t..@...|
|00003690| d1 64 d7 ff b1 93 d7 ff | 20 22 00 00 28 65 2e 67 |.d......| "..(e.g|
|000036a0| 2e 2c 20 61 20 73 65 74 | 20 6f 66 20 61 6c 74 65 |., a set| of alte|
|000036b0| 72 6e 61 74 69 76 65 73 | 29 20 77 69 74 68 6f 75 |rnatives|) withou|
|000036c0| 74 20 73 61 76 69 6e 67 | 20 69 74 20 61 73 20 61 |t saving| it as a|
|000036d0| 20 73 75 62 70 61 74 74 | 65 72 6e 2c 20 66 6f 6c | subpatt|ern, fol|
|000036e0| 6c 6f 77 20 74 68 65 20 | 28 20 77 69 74 68 20 61 |low the |( with a|
|000036f0| 20 3f 3a 2e 0d 00 00 00 | 00 74 00 00 05 84 00 00 | ?:.....|.t......|
|00003700| 00 50 f0 07 fa f5 d6 ff | da 24 d7 ff 20 22 00 00 |.P......|.$.. "..|
|00003710| 59 6f 75 20 6d 61 79 20 | 68 61 76 65 20 61 73 20 |You may |have as |
|00003720| 6d 61 6e 79 20 70 61 72 | 65 6e 74 68 65 73 65 73 |many par|entheses|
|00003730| 20 61 73 20 79 6f 75 20 | 77 69 73 68 2e 20 20 49 | as you |wish. I|
|00003740| 66 20 79 6f 75 20 68 61 | 76 65 20 6d 6f 72 65 20 |f you ha|ve more |
|00003750| 74 68 61 6e 20 39 20 73 | 75 62 73 74 72 69 6e 67 |than 9 s|ubstring|
|00003760| 73 2c 20 74 68 65 20 76 | 61 72 69 61 62 6c 65 73 |s, the v|ariables|
|00003770| 20 24 31 30 2c 20 24 31 | 31 2c 20 00 00 84 00 00 | $10, $1|1, .....|
|00003780| 05 88 00 00 00 88 94 07 | d3 bd d6 ff b3 ec d6 ff |........|........|
|00003790| 20 22 00 00 2e 2e 2e 20 | 72 65 66 65 72 20 74 6f | "..... |refer to|
|000037a0| 20 74 68 65 20 63 6f 72 | 72 65 73 70 6f 6e 64 69 | the cor|respondi|
|000037b0| 6e 67 20 73 75 62 73 74 | 72 69 6e 67 2e 20 20 57 |ng subst|ring. W|
|000037c0| 69 74 68 69 6e 20 74 68 | 65 20 70 61 74 74 65 72 |ithin th|e patter|
|000037d0| 6e 2c 20 5c 31 30 2c 20 | 5c 31 31 2c 20 65 74 63 |n, \10, |\11, etc|
|000037e0| 2e 20 72 65 66 65 72 20 | 62 61 63 6b 20 74 6f 20 |. refer |back to |
|000037f0| 73 75 62 73 74 72 69 6e | 67 73 20 69 66 20 74 68 |substrin|gs if th|
|00003800| 65 72 65 20 00 88 00 00 | 05 7c 00 00 00 20 15 07 |ere ....|.|... ..|
|00003810| ac 85 d6 ff 8c b4 d6 ff | 20 22 00 00 68 61 76 65 |........| "..have|
|00003820| 20 62 65 65 6e 20 61 74 | 20 6c 65 61 73 74 20 74 | been at| least t|
|00003830| 68 61 74 20 6d 61 6e 79 | 20 6c 65 66 74 20 70 61 |hat many| left pa|
|00003840| 72 65 6e 74 68 65 73 65 | 73 20 62 65 66 6f 72 65 |renthese|s before|
|00003850| 20 74 68 65 20 62 61 63 | 6b 72 65 66 65 72 65 6e | the bac|kreferen|
|00003860| 63 65 2e 20 20 4f 74 68 | 65 72 77 69 73 65 20 28 |ce. Oth|erwise (|
|00003870| 66 6f 72 20 62 61 63 6b | 77 61 72 64 20 00 00 00 |for back|ward ...|
|00003880| 00 7c 00 00 05 88 00 00 | 00 2c e1 07 85 4d d6 ff |.|......|.,...M..|
|00003890| 65 7c d6 ff 20 22 00 00 | 63 6f 6d 70 61 74 69 62 |e|.. "..|compatib|
|000038a0| 69 6c 69 74 79 29 20 5c | 31 30 20 69 73 20 74 68 |ility) \|10 is th|
|000038b0| 65 20 73 61 6d 65 20 61 | 73 20 5c 30 31 30 2c 20 |e same a|s \010, |
|000038c0| 61 20 62 61 63 6b 73 70 | 61 63 65 2c 20 61 6e 64 |a backsp|ace, and|
|000038d0| 20 5c 31 31 20 74 68 65 | 20 73 61 6d 65 20 61 73 | \11 the| same as|
|000038e0| 20 5c 30 31 31 2c 20 61 | 20 74 61 62 2e 20 20 41 | \011, a| tab. A|
|000038f0| 6e 64 20 73 6f 20 6f 6e | 2e 20 20 28 5c 31 20 74 |nd so on|. (\1 t|
|00003900| 68 72 6f 75 67 68 20 00 | 00 88 00 00 a5 58 00 00 |hrough .|.....X..|
|00003910| 40 6c 37 02 5e 15 d6 ff | 3e 44 d6 ff 20 22 00 00 |@l7.^...|>D.. "..|
|00003920| 5c 39 20 61 72 65 20 61 | 6c 77 61 79 73 20 62 61 |\9 are a|lways ba|
|00003930| 63 6b 72 65 66 65 72 65 | 6e 63 65 73 2e 29 0d 07 |ckrefere|nces.)..|
|00003940| 14 29 68 00 14 29 68 00 | 00 00 00 00 07 68 65 20 |.)h..)h.|.....he |
|00003950| 0e 2a 68 00 14 29 68 00 | 0e 2a 68 00 00 00 00 00 |.*h..)h.|.*h.....|
|00003960| 00 58 00 00 85 d0 00 00 | 00 98 90 07 87 a6 d5 ff |.X......|........|
|00003970| 67 d5 d5 ff ba 1f 00 00 | 24 2b 08 65 0e 2b 68 00 |g.......|$+.e.+h.|
|00003980| 14 29 68 00 00 00 00 00 | 20 72 65 74 75 72 6e 73 |.)h.....| returns|
|00003990| 20 77 68 61 74 65 76 65 | 72 20 74 68 65 20 6c 61 | whateve|r the la|
|000039a0| 73 74 20 62 72 61 63 6b | 65 74 20 6d 61 74 63 68 |st brack|et match|
|000039b0| 20 6d 61 74 63 68 65 64 | 2e 20 20 07 0e 2c 68 00 | matched|. ..,h.|
|000039c0| 14 29 68 00 0e 2c 68 00 | 00 00 00 00 24 26 08 68 |.)h..,h.|....$&.h|
|000039d0| 0e 2d 68 00 14 29 68 00 | 00 00 00 00 20 72 65 74 |.-h..)h.|.... ret|
|000039e0| 75 72 6e 73 20 74 68 65 | 20 65 6e 74 69 72 65 20 |urns the| entire |
|000039f0| 6d 61 74 63 68 65 64 20 | 73 74 72 69 6e 67 2e 20 |matched |string. |
|00003a00| 20 28 07 74 0e 2e 68 00 | 14 29 68 00 0e 2e 68 00 | (.t..h.|.)h...h.|
|00003a10| 00 00 00 00 24 30 08 20 | 0e 2f 68 00 14 29 68 00 |....$0. |./h..)h.|
|00003a20| 00 00 00 00 20 75 73 65 | 64 20 74 6f 20 00 00 00 |.... use|d to ...|
|00003a30| 00 d0 00 00 85 c4 00 00 | 00 60 83 07 60 6e d5 ff |........|.`..`n..|
|00003a40| 40 9d d5 ff 20 22 00 00 | 72 65 74 75 72 6e 20 74 |@... "..|return t|
|00003a50| 68 65 20 73 61 6d 65 20 | 74 68 69 6e 67 2c 20 62 |he same |thing, b|
|00003a60| 75 74 20 6e 6f 74 20 61 | 6e 79 20 6d 6f 72 65 2e |ut not a|ny more.|
|00003a70| 29 20 20 07 0e 30 68 00 | 14 29 68 00 0e 30 68 00 |) ..0h.|.)h..0h.|
|00003a80| 00 00 00 00 24 60 08 65 | 0e 31 68 00 14 29 68 00 |....$`.e|.1h..)h.|
|00003a90| 00 00 00 00 20 72 65 74 | 75 72 6e 73 20 65 76 65 |.... ret|urns eve|
|00003aa0| 72 79 74 68 69 6e 67 20 | 62 65 66 6f 72 65 20 74 |rything |before t|
|00003ab0| 68 65 20 6d 61 74 63 68 | 65 64 20 73 74 72 69 6e |he match|ed strin|
|00003ac0| 67 2e 20 20 07 61 74 63 | 0e 32 68 00 14 29 68 00 |g. .atc|.2h..)h.|
|00003ad0| 0e 32 68 00 00 00 00 00 | 24 27 08 20 0e 33 68 00 |.2h.....|$'. .3h.|
|00003ae0| 14 29 68 00 00 00 00 00 | 20 72 65 74 75 72 6e 73 |.)h.....| returns|
|00003af0| 20 00 00 00 00 c4 00 00 | a5 78 00 00 40 2c 79 03 | .......|.x..@,y.|
|00003b00| 39 36 d5 ff 19 65 d5 ff | 20 22 00 00 65 76 65 72 |96...e..| "..ever|
|00003b10| 79 74 68 69 6e 67 20 61 | 66 74 65 72 20 74 68 65 |ything a|fter the|
|00003b20| 20 6d 61 74 63 68 65 64 | 20 73 74 72 69 6e 67 2e | matched| string.|
|00003b30| 20 20 45 78 61 6d 70 6c | 65 73 3a 0d 08 6f 20 66 | Exampl|es:..o f|
|00003b40| 14 00 00 00 00 00 00 00 | 07 20 6d 75 12 34 68 00 |........|. mu.4h.|
|00003b50| 12 34 68 00 00 00 00 00 | 07 74 69 74 0c 35 68 00 |.4h.....|.tit.5h.|
|00003b60| 12 34 68 00 0c 35 68 00 | 00 00 00 00 00 78 00 00 |.4h..5h.|.....x..|
|00003b70| a5 78 00 00 40 a0 f1 04 | 32 cf d4 ff 42 f6 d4 ff |.x..@...|2...B...|
|00003b80| 70 1a 00 00 73 2f 5e 28 | 5b 5e 20 5d 2a 29 20 2a |p...s/^(|[^ ]*) *|
|00003b90| 28 5b 5e 20 5d 2a 29 2f | 24 32 20 24 31 2f 3b 20 |([^ ]*)/|$2 $1/; |
|00003ba0| 20 20 20 20 23 20 73 77 | 61 70 20 66 69 72 73 74 | # sw|ap first|
|00003bb0| 20 74 77 6f 20 77 6f 72 | 64 73 0d 08 0c 36 68 00 | two wor|ds...6h.|
|00003bc0| 12 34 68 00 00 00 00 00 | 08 69 63 68 12 00 00 00 |.4h.....|.ich....|
|00003bd0| 00 00 00 00 07 74 20 74 | 18 37 68 00 18 37 68 00 |.....t t|.7h..7h.|
|00003be0| 00 00 00 00 00 78 00 00 | a5 48 00 00 40 00 00 00 |.....x..|.H..@...|
|00003bf0| a2 ba d4 ff 62 c7 d4 ff | 00 00 00 00 0d 08 69 6e |....b...|......in|
|00003c00| 18 38 68 00 00 00 00 00 | 07 2d 65 76 12 39 68 00 |.8h.....|.-ev.9h.|
|00003c10| 12 39 68 00 00 00 00 00 | 07 74 2e 20 0c 3a 68 00 |.9h.....|.t. .:h.|
|00003c20| 12 39 68 00 0c 3a 68 00 | 00 00 00 00 00 48 00 00 |.9h..:h.|.....H..|
|00003c30| 25 38 00 00 40 b0 a7 02 | a2 69 d4 ff b2 90 d4 ff |%8..@...|.i......|
|00003c40| 70 1a 00 00 69 66 20 28 | 2f 54 69 6d 65 3a 20 28 |p...if (|/Time: (|
|00003c50| 2e 2e 29 3a 28 2e 2e 29 | 3a 28 2e 2e 29 2f 29 20 |..):(..)|:(..)/) |
|00003c60| 7b 0d 00 00 00 38 00 00 | 25 2c 00 00 40 00 77 01 |{....8..|%,..@.w.|
|00003c70| c2 3a d4 ff d2 61 d4 ff | 70 1a 00 00 20 20 20 20 |.:...a..|p... |
|00003c80| 24 68 6f 75 72 73 20 3d | 20 24 31 3b 0d 00 00 00 |$hours =| $1;....|
|00003c90| 00 2c 00 00 25 2c 00 00 | 40 e0 a5 01 e2 0b d4 ff |.,..%,..|@.......|
|00003ca0| f2 32 d4 ff 70 1a 00 00 | 20 20 20 20 24 6d 69 6e |.2..p...| $min|
|00003cb0| 75 74 65 73 20 3d 20 24 | 32 3b 0d 00 00 2c 00 00 |utes = $|2;...,..|
|00003cc0| 25 2c 00 00 40 e0 a5 01 | 02 dd d3 ff 12 04 d4 ff |%,..@...|........|
|00003cd0| 70 1a 00 00 20 20 20 20 | 24 73 65 63 6f 6e 64 73 |p... |$seconds|
|00003ce0| 20 3d 20 24 33 3b 0d 00 | 00 2c 00 00 a5 44 00 00 | = $3;..|.,...D..|
|00003cf0| 40 70 17 00 22 ae d3 ff | 32 d5 d3 ff 70 1a 00 00 |@p.."...|2...p...|
|00003d00| 7d 0d 08 61 0c 3b 68 00 | 12 39 68 00 00 00 00 00 |}..a.;h.|.9h.....|
|00003d10| 08 3a 0d 08 12 00 00 00 | 00 00 00 00 07 05 05 05 |.:......|........|
|00003d20| 18 3c 68 00 18 3c 68 00 | 00 00 00 00 00 44 00 00 |.<h..<h.|.....D..|
|00003d30| a5 24 00 00 40 00 00 00 | 92 99 d3 ff 52 a6 d3 ff |.$..@...|....R...|
|00003d40| 00 00 00 00 0d 08 20 4d | 18 3d 68 00 00 00 00 00 |...... M|.=h.....|
|00003d50| 00 24 00 00 85 d0 00 00 | 00 48 d4 07 c2 40 d3 ff |.$......|.H...@..|
|00003d60| a2 6f d3 ff 20 22 00 00 | 4f 6e 63 65 20 70 65 72 |.o.. "..|Once per|
|00003d70| 6c 20 73 65 65 73 20 74 | 68 61 74 20 79 6f 75 20 |l sees t|hat you |
|00003d80| 6e 65 65 64 20 6f 6e 65 | 20 6f 66 20 07 20 74 69 |need one| of . ti|
|00003d90| 0e 3e 68 00 0e 3e 68 00 | 00 00 00 00 24 26 08 68 |.>h..>h.|....$&.h|
|00003da0| 0e 3f 68 00 00 00 00 00 | 2c 20 07 74 0e 40 68 00 |.?h.....|, .t.@h.|
|00003db0| 0e 40 68 00 00 00 00 00 | 24 60 08 63 0e 41 68 00 |.@h.....|$`.c.Ah.|
|00003dc0| 00 00 00 00 20 6f 72 20 | 07 74 69 6d 0e 42 68 00 |.... or |.tim.Bh.|
|00003dd0| 0e 42 68 00 00 00 00 00 | 24 27 08 20 0e 43 68 00 |.Bh.....|$'. .Ch.|
|00003de0| 00 00 00 00 20 61 6e 79 | 77 68 65 72 65 20 69 6e |.... any|where in|
|00003df0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 2c 20 69 74 | the pro|gram, it|
|00003e00| 20 68 61 73 20 74 6f 20 | 70 72 6f 76 69 64 65 20 | has to |provide |
|00003e10| 74 68 65 6d 20 6f 6e 20 | 65 61 63 68 20 00 00 00 |them on |each ...|
|00003e20| 00 d0 00 00 05 7c 00 00 | 00 34 70 07 9b 08 d3 ff |.....|..|.4p.....|
|00003e30| 7b 37 d3 ff 20 22 00 00 | 61 6e 64 20 65 76 65 72 |{7.. "..|and ever|
|00003e40| 79 20 70 61 74 74 65 72 | 6e 20 6d 61 74 63 68 2e |y patter|n match.|
|00003e50| 20 54 68 69 73 20 63 61 | 6e 20 73 6c 6f 77 20 79 | This ca|n slow y|
|00003e60| 6f 75 72 20 70 72 6f 67 | 72 61 6d 20 64 6f 77 6e |our prog|ram down|
|00003e70| 2e 20 20 54 68 65 20 73 | 61 6d 65 20 6d 65 63 68 |. The s|ame mech|
|00003e80| 61 6e 69 73 6d 20 74 68 | 61 74 20 68 61 6e 64 6c |anism th|at handl|
|00003e90| 65 73 20 74 68 65 73 65 | 20 00 00 00 00 7c 00 00 |es these| ....|..|
|00003ea0| 05 80 00 00 00 80 63 07 | 74 d0 d2 ff 54 ff d2 ff |......c.|t...T...|
|00003eb0| 20 22 00 00 70 72 6f 76 | 69 64 65 73 20 66 6f 72 | "..prov|ides for|
|00003ec0| 20 74 68 65 20 75 73 65 | 20 6f 66 20 24 31 2c 20 | the use| of $1, |
|00003ed0| 24 32 2c 20 65 74 63 2e | 2c 20 73 6f 20 79 6f 75 |$2, etc.|, so you|
|00003ee0| 20 70 61 79 20 74 68 65 | 20 73 61 6d 65 20 70 72 | pay the| same pr|
|00003ef0| 69 63 65 20 66 6f 72 20 | 65 61 63 68 20 72 65 67 |ice for |each reg|
|00003f00| 65 78 70 20 74 68 61 74 | 20 63 6f 6e 74 61 69 6e |exp that| contain|
|00003f10| 73 20 63 61 70 74 75 72 | 69 6e 67 20 00 80 00 00 |s captur|ing ....|
|00003f20| 85 a0 00 00 00 3c d4 07 | 4d 98 d2 ff 2d c7 d2 ff |.....<..|M...-...|
|00003f30| 20 22 00 00 70 61 72 65 | 6e 74 68 65 73 65 73 2e | "..pare|ntheses.|
|00003f40| 20 42 75 74 20 69 66 20 | 79 6f 75 20 6e 65 76 65 | But if |you neve|
|00003f50| 72 20 75 73 65 20 24 26 | 2c 20 65 74 63 2e 2c 20 |r use $&|, etc., |
|00003f60| 69 6e 20 79 6f 75 72 20 | 73 63 72 69 70 74 2c 20 |in your |script, |
|00003f70| 74 68 65 6e 20 72 65 67 | 65 78 70 73 20 07 67 00 |then reg|exps .g.|
|00003f80| 11 44 68 00 11 44 68 00 | 00 00 00 00 77 69 74 68 |.Dh..Dh.|....with|
|00003f90| 6f 75 74 08 11 00 00 00 | 00 00 00 00 20 63 61 70 |out.....|.... cap|
|00003fa0| 74 75 72 69 6e 67 20 70 | 61 72 65 6e 74 68 65 73 |turing p|arenthes|
|00003fb0| 65 73 20 77 6f 6e 27 74 | 20 00 00 00 00 a0 00 00 |es won't| .......|
|00003fc0| 05 84 00 00 00 1c 91 07 | 26 60 d2 ff 06 8f d2 ff |........|&`......|
|00003fd0| 20 22 00 00 62 65 20 70 | 65 6e 61 6c 69 7a 65 64 | "..be p|enalized|
|00003fe0| 2e 20 53 6f 20 61 76 6f | 69 64 20 24 26 2c 20 24 |. So avo|id $&, $|
|00003ff0| 27 2c 20 61 6e 64 20 24 | 60 20 69 66 20 79 6f 75 |', and $|` if you|
|00004000| 20 63 61 6e 2c 20 62 75 | 74 20 69 66 20 79 6f 75 | can, bu|t if you|
|00004010| 20 63 61 6e 27 74 20 28 | 61 6e 64 20 73 6f 6d 65 | can't (|and some|
|00004020| 20 61 6c 67 6f 72 69 74 | 68 6d 73 20 72 65 61 6c | algorit|hms real|
|00004030| 6c 79 20 61 70 70 72 65 | 63 69 61 74 65 20 00 00 |ly appre|ciate ..|
|00004040| 00 84 00 00 a5 84 00 00 | 40 b8 b3 06 ff 27 d2 ff |........|@....'..|
|00004050| df 56 d2 ff 20 22 00 00 | 74 68 65 6d 29 2c 20 6f |.V.. "..|them), o|
|00004060| 6e 63 65 20 79 6f 75 27 | 76 65 20 75 73 65 64 20 |nce you'|ve used |
|00004070| 74 68 65 6d 20 6f 6e 63 | 65 2c 20 75 73 65 20 74 |them onc|e, use t|
|00004080| 68 65 6d 20 61 74 20 77 | 69 6c 6c 2c 20 62 65 63 |hem at w|ill, bec|
|00004090| 61 75 73 65 20 79 6f 75 | 27 76 65 20 61 6c 72 65 |ause you|'ve alre|
|000040a0| 61 64 79 20 70 61 69 64 | 20 74 68 65 20 70 72 69 |ady paid| the pri|
|000040b0| 63 65 2e 0d 07 65 61 6e | 14 45 68 00 14 45 68 00 |ce...ean|.Eh..Eh.|
|000040c0| 00 00 00 00 00 84 00 00 | 85 e4 00 00 00 40 9a 07 |........|.....@..|
|000040d0| 28 b9 d1 ff 08 e8 d1 ff | 20 22 00 00 59 6f 75 20 |(.......| "..You |
|000040e0| 77 69 6c 6c 20 6e 6f 74 | 65 20 74 68 61 74 20 61 |will not|e that a|
|000040f0| 6c 6c 20 62 61 63 6b 73 | 6c 61 73 68 65 64 20 6d |ll backs|lashed m|
|00004100| 65 74 61 63 68 61 72 61 | 63 74 65 72 73 20 69 6e |etachara|cters in|
|00004110| 20 50 65 72 6c 20 61 72 | 65 20 61 6c 70 68 61 6e | Perl ar|e alphan|
|00004120| 75 6d 65 72 69 63 2c 20 | 73 75 63 68 20 61 73 20 |umeric, |such as |
|00004130| 07 20 20 20 0e 46 68 00 | 14 45 68 00 0e 46 68 00 |. .Fh.|.Eh..Fh.|
|00004140| 00 00 00 00 5c 62 08 65 | 0e 47 68 00 14 45 68 00 |....\b.e|.Gh..Eh.|
|00004150| 00 00 00 00 2c 20 07 30 | 0e 48 68 00 14 45 68 00 |...., .0|.Hh..Eh.|
|00004160| 0e 48 68 00 00 00 00 00 | 5c 77 08 61 0e 49 68 00 |.Hh.....|\w.a.Ih.|
|00004170| 14 45 68 00 00 00 00 00 | 2c 20 07 69 0e 4a 68 00 |.Eh.....|, .i.Jh.|
|00004180| 14 45 68 00 0e 4a 68 00 | 00 00 00 00 5c 6e 08 20 |.Eh..Jh.|....\n. |
|00004190| 0e 4b 68 00 14 45 68 00 | 00 00 00 00 2e 20 20 55 |.Kh..Eh.|..... U|
|000041a0| 6e 6c 69 6b 65 20 00 00 | 00 e4 00 00 05 80 00 00 |nlike ..|........|
|000041b0| 00 70 9d 07 01 81 d1 ff | e1 af d1 ff 20 22 00 00 |.p......|.... "..|
|000041c0| 73 6f 6d 65 20 6f 74 68 | 65 72 20 72 65 67 75 6c |some oth|er regul|
|000041d0| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 20 6c 61 |ar expre|ssion la|
|000041e0| 6e 67 75 61 67 65 73 2c | 20 74 68 65 72 65 20 61 |nguages,| there a|
|000041f0| 72 65 20 6e 6f 20 62 61 | 63 6b 73 6c 61 73 68 65 |re no ba|ckslashe|
|00004200| 64 20 73 79 6d 62 6f 6c | 73 20 74 68 61 74 20 61 |d symbol|s that a|
|00004210| 72 65 6e 27 74 20 61 6c | 70 68 61 6e 75 6d 65 72 |ren't al|phanumer|
|00004220| 69 63 2e 20 53 6f 20 00 | 00 80 00 00 05 84 00 00 |ic. So .|........|
|00004230| 00 60 f3 06 da 48 d1 ff | ba 77 d1 ff 20 22 00 00 |.`...H..|.w.. "..|
|00004240| 61 6e 79 74 68 69 6e 67 | 20 74 68 61 74 20 6c 6f |anything| that lo|
|00004250| 6f 6b 73 20 6c 69 6b 65 | 20 5c 5c 2c 20 5c 28 2c |oks like| \\, \(,|
|00004260| 20 5c 29 2c 20 5c 3c 2c | 20 5c 3e 2c 20 5c 7b 2c | \), \<,| \>, \{,|
|00004270| 20 6f 72 20 5c 7d 20 69 | 73 20 61 6c 77 61 79 73 | or \} i|s always|
|00004280| 20 69 6e 74 65 72 70 72 | 65 74 65 64 20 61 73 20 | interpr|eted as |
|00004290| 61 20 6c 69 74 65 72 61 | 6c 20 63 68 61 72 61 63 |a litera|l charac|
|000042a0| 74 65 72 2c 20 6e 6f 74 | 20 61 20 00 00 84 00 00 |ter, not| a .....|
|000042b0| 05 84 00 00 00 c8 8d 07 | b3 10 d1 ff 93 3f d1 ff |........|.....?..|
|000042c0| 20 22 00 00 6d 65 74 61 | 63 68 61 72 61 63 74 65 | "..meta|characte|
|000042d0| 72 2e 20 20 54 68 69 73 | 20 6d 61 6b 65 73 20 69 |r. This| makes i|
|000042e0| 74 20 73 69 6d 70 6c 65 | 20 74 6f 20 71 75 6f 74 |t simple| to quot|
|000042f0| 65 20 61 20 73 74 72 69 | 6e 67 20 74 68 61 74 20 |e a stri|ng that |
|00004300| 79 6f 75 20 77 61 6e 74 | 20 74 6f 20 75 73 65 20 |you want| to use |
|00004310| 66 6f 72 20 61 20 70 61 | 74 74 65 72 6e 20 62 75 |for a pa|ttern bu|
|00004320| 74 20 74 68 61 74 20 79 | 6f 75 20 61 72 65 20 00 |t that y|ou are .|
|00004330| 00 84 00 00 a5 a0 00 00 | 40 2c 79 06 8c d8 d0 ff |........|@,y.....|
|00004340| 6c 07 d1 ff 20 22 00 00 | 61 66 72 61 69 64 20 6d |l... "..|afraid m|
|00004350| 69 67 68 74 20 63 6f 6e | 74 61 69 6e 20 6d 65 74 |ight con|tain met|
|00004360| 61 63 68 61 72 61 63 74 | 65 72 73 2e 20 20 51 75 |acharact|ers. Qu|
|00004370| 6f 74 65 20 73 69 6d 70 | 6c 79 20 61 6c 6c 20 74 |ote simp|ly all t|
|00004380| 68 65 20 6e 6f 6e 2d 61 | 6c 70 68 61 6e 75 6d 65 |he non-a|lphanume|
|00004390| 72 69 63 20 63 68 61 72 | 61 63 74 65 72 73 3a 0d |ric char|acters:.|
|000043a0| 08 61 72 20 14 00 00 00 | 00 00 00 00 07 20 61 20 |.ar ....|..... a |
|000043b0| 12 4c 68 00 12 4c 68 00 | 00 00 00 00 07 20 20 20 |.Lh..Lh.|..... |
|000043c0| 0c 4d 68 00 12 4c 68 00 | 0c 4d 68 00 00 00 00 00 |.Mh..Lh.|.Mh.....|
|000043d0| 00 a0 00 00 a5 5c 00 00 | 40 60 61 02 85 71 d0 ff |.....\..|@`a..q..|
|000043e0| 95 98 d0 ff 70 1a 00 00 | 24 70 61 74 74 65 72 6e |....p...|$pattern|
|000043f0| 20 3d 7e 20 73 2f 28 5c | 57 29 2f 5c 5c 24 31 2f | =~ s/(\|W)/\\$1/|
|00004400| 67 3b 0d 08 0c 4e 68 00 | 12 4c 68 00 00 00 00 00 |g;...Nh.|.Lh.....|
|00004410| 08 5c 75 20 12 00 00 00 | 00 00 00 00 07 75 70 70 |.\u ....|.....upp|
|00004420| 18 4f 68 00 18 4f 68 00 | 00 00 00 00 00 5c 00 00 |.Oh..Oh.|.....\..|
|00004430| a5 24 00 00 40 00 00 00 | f5 5c d0 ff b5 69 d0 ff |.$..@...|.\...i..|
|00004440| 00 00 00 00 0d 08 20 20 | 18 50 68 00 00 00 00 00 |...... |.Ph.....|
|00004450| 00 24 00 00 05 84 00 00 | 00 e8 a3 07 25 04 d0 ff |.$......|....%...|
|00004460| 05 33 d0 ff 20 22 00 00 | 59 6f 75 20 63 61 6e 20 |.3.. "..|You can |
|00004470| 61 6c 73 6f 20 75 73 65 | 20 74 68 65 20 62 75 69 |also use| the bui|
|00004480| 6c 74 69 6e 20 71 75 6f | 74 65 6d 65 74 61 28 29 |ltin quo|temeta()|
|00004490| 20 66 75 6e 63 74 69 6f | 6e 20 74 6f 20 64 6f 20 | functio|n to do |
|000044a0| 74 68 69 73 2e 20 41 6e | 20 65 76 65 6e 20 65 61 |this. An| even ea|
|000044b0| 73 69 65 72 20 77 61 79 | 20 74 6f 20 71 75 6f 74 |sier way| to quot|
|000044c0| 65 20 6d 65 74 61 63 68 | 61 72 61 63 74 65 72 73 |e metach|aracters|
|000044d0| 20 00 00 00 00 84 00 00 | a5 60 00 00 40 4c 99 02 | .......|.`..@L..|
|000044e0| fe cb cf ff de fa cf ff | 20 22 00 00 72 69 67 68 |........| "..righ|
|000044f0| 74 20 69 6e 20 74 68 65 | 20 6d 61 74 63 68 20 6f |t in the| match o|
|00004500| 70 65 72 61 74 6f 72 20 | 69 73 20 74 6f 20 73 61 |perator |is to sa|
|00004510| 79 0d 07 00 12 51 68 00 | 12 51 68 00 00 00 00 00 |y....Qh.|.Qh.....|
|00004520| 07 66 20 07 0c 52 68 00 | 12 51 68 00 0c 52 68 00 |.f ..Rh.|.Qh..Rh.|
|00004530| 00 00 00 00 00 60 00 00 | a5 64 00 00 40 90 d6 02 |.....`..|.d..@...|
|00004540| f7 64 cf ff 07 8c cf ff | 70 1a 00 00 2f 24 75 6e |.d......|p.../$un|
|00004550| 71 75 6f 74 65 64 5c 51 | 24 71 75 6f 74 65 64 5c |quoted\Q|$quoted\|
|00004560| 45 24 75 6e 71 75 6f 74 | 65 64 2f 0d 08 db 67 00 |E$unquot|ed/...g.|
|00004570| 0c 53 68 00 12 51 68 00 | 00 00 00 00 08 dc 67 00 |.Sh..Qh.|......g.|
|00004580| 12 00 00 00 00 00 00 00 | 07 dd 67 00 18 54 68 00 |........|..g..Th.|
|00004590| 18 54 68 00 00 00 00 00 | 00 64 00 00 a5 34 00 00 |.Th.....|.d...4..|
|000045a0| 40 00 00 00 67 50 cf ff | 27 5d cf ff 00 00 00 00 |@...gP..|']......|
|000045b0| 0d 08 08 05 18 55 68 00 | 00 00 00 00 07 61 6e 64 |.....Uh.|.....and|
|000045c0| 14 56 68 00 14 56 68 00 | 00 00 00 00 00 34 00 00 |.Vh..Vh.|.....4..|
|000045d0| 05 88 00 00 00 9c e3 07 | 97 f7 ce ff 77 26 cf ff |........|....w&..|
|000045e0| 20 22 00 00 50 65 72 6c | 20 64 65 66 69 6e 65 73 | "..Perl| defines|
|000045f0| 20 61 20 63 6f 6e 73 69 | 73 74 65 6e 74 20 65 78 | a consi|stent ex|
|00004600| 74 65 6e 73 69 6f 6e 20 | 73 79 6e 74 61 78 20 66 |tension |syntax f|
|00004610| 6f 72 20 72 65 67 75 6c | 61 72 20 65 78 70 72 65 |or regul|ar expre|
|00004620| 73 73 69 6f 6e 73 2e 20 | 54 68 65 20 73 79 6e 74 |ssions. |The synt|
|00004630| 61 78 20 69 73 20 61 20 | 70 61 69 72 20 6f 66 20 |ax is a |pair of |
|00004640| 70 61 72 65 6e 74 68 65 | 73 65 73 20 77 69 74 68 |parenthe|ses with|
|00004650| 20 61 20 00 00 88 00 00 | 05 88 00 00 00 8c 9f 07 | a .....|........|
|00004660| 70 bf ce ff 50 ee ce ff | 20 22 00 00 71 75 65 73 |p...P...| "..ques|
|00004670| 74 69 6f 6e 20 6d 61 72 | 6b 20 61 73 20 74 68 65 |tion mar|k as the|
|00004680| 20 66 69 72 73 74 20 74 | 68 69 6e 67 20 77 69 74 | first t|hing wit|
|00004690| 68 69 6e 20 74 68 65 20 | 70 61 72 65 6e 74 68 65 |hin the |parenthe|
|000046a0| 73 65 73 20 28 74 68 69 | 73 20 77 61 73 20 61 20 |ses (thi|s was a |
|000046b0| 73 79 6e 74 61 78 20 65 | 72 72 6f 72 20 69 6e 20 |syntax e|rror in |
|000046c0| 6f 6c 64 65 72 20 76 65 | 72 73 69 6f 6e 73 20 6f |older ve|rsions o|
|000046d0| 66 20 50 65 72 6c 29 2e | 20 20 00 00 00 88 00 00 |f Perl).| ......|
|000046e0| 05 84 00 00 00 58 ac 07 | 49 87 ce ff 29 b6 ce ff |.....X..|I...)...|
|000046f0| 20 22 00 00 54 68 65 20 | 63 68 61 72 61 63 74 65 | "..The |characte|
|00004700| 72 20 61 66 74 65 72 20 | 74 68 65 20 71 75 65 73 |r after |the ques|
|00004710| 74 69 6f 6e 20 6d 61 72 | 6b 20 67 69 76 65 73 20 |tion mar|k gives |
|00004720| 74 68 65 20 66 75 6e 63 | 74 69 6f 6e 20 6f 66 20 |the func|tion of |
|00004730| 74 68 65 20 65 78 74 65 | 6e 73 69 6f 6e 2e 20 20 |the exte|nsion. |
|00004740| 53 65 76 65 72 61 6c 20 | 65 78 74 65 6e 73 69 6f |Several |extensio|
|00004750| 6e 73 20 61 72 65 20 61 | 6c 72 65 61 64 79 20 00 |ns are a|lready .|
|00004760| 00 84 00 00 a5 50 00 00 | 40 e8 c5 00 22 4f ce ff |.....P..|@..."O..|
|00004770| 02 7e ce ff 20 22 00 00 | 73 75 70 70 6f 72 74 65 |.~.. "..|supporte|
|00004780| 64 3a 0d 08 14 00 00 00 | 00 00 00 00 07 00 00 00 |d:......|........|
|00004790| 13 57 68 00 13 57 68 00 | 00 00 00 00 07 e8 67 00 |.Wh..Wh.|......g.|
|000047a0| 09 58 68 00 13 57 68 00 | 09 58 68 00 00 00 00 00 |.Xh..Wh.|.Xh.....|
|000047b0| 00 50 00 00 a5 30 00 00 | 40 90 99 00 4b e0 cd ff |.P...0..|@...K...|
|000047c0| 2b 0f ce ff 28 23 00 00 | 28 3f 23 74 65 78 74 29 |+...(#..|(?#text)|
|000047d0| 0d 08 20 63 09 59 68 00 | 13 57 68 00 00 00 00 00 |.. c.Yh.|.Wh.....|
|000047e0| 00 30 00 00 85 dc 00 00 | 04 1c d9 07 24 a8 cd ff |.0......|....$...|
|000047f0| 04 d7 cd ff 20 22 00 00 | 12 20 61 20 50 46 00 00 |.... "..|. a PF..|
|00004800| 00 00 00 00 12 64 20 6e | 70 17 00 00 00 00 00 00 |.....d n|p.......|
|00004810| 41 20 63 6f 6d 6d 65 6e | 74 2e 20 20 54 68 65 20 |A commen|t. The |
|00004820| 74 65 78 74 20 69 73 20 | 69 67 6e 6f 72 65 64 2e |text is |ignored.|
|00004830| 20 20 49 66 20 74 68 65 | 20 07 67 00 0e 5a 68 00 | If the| .g..Zh.|
|00004840| 13 57 68 00 0e 5a 68 00 | 00 00 00 00 2f 78 08 00 |.Wh..Zh.|..../x..|
|00004850| 0e 5b 68 00 13 57 68 00 | 00 00 00 00 20 73 77 69 |.[h..Wh.|.... swi|
|00004860| 74 63 68 20 69 73 20 75 | 73 65 64 20 74 6f 20 65 |tch is u|sed to e|
|00004870| 6e 61 62 6c 65 20 77 68 | 69 74 65 73 70 61 63 65 |nable wh|itespace|
|00004880| 20 66 6f 72 6d 61 74 74 | 69 6e 67 2c 20 61 20 73 | formatt|ing, a s|
|00004890| 69 6d 70 6c 65 20 07 00 | 0e 5c 68 00 13 57 68 00 |imple ..|.\h..Wh.|
|000048a0| 0e 5c 68 00 00 00 00 00 | 23 08 00 00 0e 5d 68 00 |.\h.....|#....]h.|
|000048b0| 13 57 68 00 00 00 00 00 | 20 00 00 00 00 dc 00 00 |.Wh.....| .......|
|000048c0| a5 38 00 00 40 14 df 00 | fd 6f cd ff dd 9e cd ff |.8..@...|.o......|
|000048d0| 20 22 00 00 77 69 6c 6c | 20 73 75 66 66 69 63 65 | "..will| suffice|
|000048e0| 2e 0d 07 05 09 5e 68 00 | 13 57 68 00 09 5e 68 00 |.....^h.|.Wh..^h.|
|000048f0| 00 00 00 00 00 38 00 00 | 01 10 00 00 41 cc cc 00 |.....8..|....A...|
|00004900| 00 00 00 00 00 10 00 00 | 02 1c 00 00 38 07 00 00 |........|....8...|
|00004910| 00 00 00 00 13 57 68 00 | 09 5e 68 00 00 00 00 00 |.....Wh.|.^h.....|
|00004920| 00 1c 00 00 a5 3c 00 00 | 40 cc cc 00 bc 45 cb ff |.....<..|@....E..|
|00004930| 9c 74 cb ff 28 23 00 00 | 16 00 00 00 b0 fc 07 00 |.t..(#..|........|
|00004940| 00 00 00 00 28 3f 3a 72 | 65 67 65 78 70 29 0d 08 |....(?:r|egexp)..|
|00004950| 09 5f 68 00 13 57 68 00 | 00 00 00 00 00 3c 00 00 |._h..Wh.|.....<..|
|00004960| a5 ac 00 00 44 ac 23 06 | 95 0d cb ff 75 3c cb ff |....D.#.|....u<..|
|00004970| 20 22 00 00 12 53 08 05 | 50 46 00 00 00 00 00 00 | "...S..|PF......|
|00004980| 12 20 07 05 70 17 00 00 | 00 00 00 00 54 68 69 73 |. ..p...|....This|
|00004990| 20 67 72 6f 75 70 73 20 | 74 68 69 6e 67 73 20 6c | groups |things l|
|000049a0| 69 6b 65 20 22 28 29 22 | 20 62 75 74 20 64 6f 65 |ike "()"| but doe|
|000049b0| 73 6e 27 74 20 6d 61 6b | 65 20 62 61 63 6b 72 65 |sn't mak|e backre|
|000049c0| 66 65 72 65 6e 63 65 73 | 20 6c 69 6b 65 20 22 28 |ferences| like "(|
|000049d0| 29 22 20 64 6f 65 73 2e | 20 20 53 6f 0d 07 6e 6f |)" does.| So..no|
|000049e0| 12 60 68 00 13 57 68 00 | 12 60 68 00 00 00 00 00 |.`h..Wh.|.`h.....|
|000049f0| 07 66 20 61 0c 61 68 00 | 13 57 68 00 12 60 68 00 |.f a.ah.|.Wh..`h.|
|00004a00| 0c 61 68 00 00 00 00 00 | 00 ac 00 00 a5 64 00 00 |.ah.....|.....d..|
|00004a10| 40 a0 03 02 8e a6 ca ff | 9e cd ca ff 70 1a 00 00 |@.......|....p...|
|00004a20| 73 70 6c 69 74 28 2f 5c | 62 28 3f 3a 61 7c 62 7c |split(/\|b(?:a|b||
|00004a30| 63 29 5c 62 2f 29 0d 08 | 0c 62 68 00 13 57 68 00 |c)\b/)..|.bh..Wh.|
|00004a40| 12 60 68 00 00 00 00 00 | 08 05 05 05 12 00 00 00 |.`h.....|........|
|00004a50| 13 57 68 00 00 00 00 00 | 07 05 05 05 18 63 68 00 |.Wh.....|.....ch.|
|00004a60| 13 57 68 00 18 63 68 00 | 00 00 00 00 00 64 00 00 |.Wh..ch.|.....d..|
|00004a70| a5 28 00 00 40 00 00 00 | fe 91 ca ff be 9e ca ff |.(..@...|........|
|00004a80| 00 00 00 00 0d 08 5c 42 | 18 64 68 00 13 57 68 00 |......\B|.dh..Wh.|
|00004a90| 00 00 00 00 00 28 00 00 | a5 64 00 00 44 0c cf 00 |.....(..|.d..D...|
|00004aa0| 2e 39 ca ff 0e 68 ca ff | 20 22 00 00 12 63 68 20 |.9...h..| "...ch |
|00004ab0| 50 46 00 00 00 00 00 00 | 12 65 67 69 70 17 00 00 |PF......|.egip...|
|00004ac0| 00 00 00 00 69 73 20 6c | 69 6b 65 0d 07 5a 20 20 |....is l|ike..Z |
|00004ad0| 12 65 68 00 13 57 68 00 | 12 65 68 00 00 00 00 00 |.eh..Wh.|.eh.....|
|00004ae0| 07 20 6f 66 0c 66 68 00 | 13 57 68 00 12 65 68 00 |. of.fh.|.Wh..eh.|
|00004af0| 0c 66 68 00 00 00 00 00 | 00 64 00 00 a5 64 00 00 |.fh.....|.d...d..|
|00004b00| 40 c0 d4 01 27 d2 c9 ff | 37 f9 c9 ff 70 1a 00 00 |@...'...|7...p...|
|00004b10| 73 70 6c 69 74 28 2f 5c | 62 28 61 7c 62 7c 63 29 |split(/\|b(a|b|c)|
|00004b20| 5c 62 2f 29 0d 08 75 73 | 0c 67 68 00 13 57 68 00 |\b/)..us|.gh..Wh.|
|00004b30| 12 65 68 00 00 00 00 00 | 08 6f 72 6b 12 00 00 00 |.eh.....|.ork....|
|00004b40| 13 57 68 00 00 00 00 00 | 07 67 29 0d 18 68 68 00 |.Wh.....|.g)..hh.|
|00004b50| 13 57 68 00 18 68 68 00 | 00 00 00 00 00 64 00 00 |.Wh..hh.|.....d..|
|00004b60| a5 28 00 00 40 00 00 00 | 97 bd c9 ff 57 ca c9 ff |.(..@...|....W...|
|00004b70| 00 00 00 00 0d 08 00 00 | 18 69 68 00 13 57 68 00 |........|.ih..Wh.|
|00004b80| 00 00 00 00 00 28 00 00 | a5 64 00 00 44 4c a8 02 |.....(..|.d..DL..|
|00004b90| c7 64 c9 ff a7 93 c9 ff | 20 22 00 00 12 03 68 00 |.d......| "....h.|
|00004ba0| 50 46 00 00 00 00 00 00 | 12 04 68 00 70 17 00 00 |PF......|..h.p...|
|00004bb0| 00 00 00 00 62 75 74 20 | 64 6f 65 73 6e 27 74 20 |....but |doesn't |
|00004bc0| 73 70 69 74 20 6f 75 74 | 20 65 78 74 72 61 20 66 |spit out| extra f|
|00004bd0| 69 65 6c 64 73 2e 0d 07 | 09 6a 68 00 13 57 68 00 |ields...|.jh..Wh.|
|00004be0| 09 6a 68 00 00 00 00 00 | 00 64 00 00 a5 30 00 00 |.jh.....|.d...0..|
|00004bf0| 40 e8 d7 00 f0 f5 c8 ff | d0 24 c9 ff 28 23 00 00 |@.......|.$..(#..|
|00004c00| 28 3f 3d 72 65 67 65 78 | 70 29 0d 08 09 6b 68 00 |(?=regex|p)...kh.|
|00004c10| 13 57 68 00 00 00 00 00 | 00 30 00 00 85 b0 00 00 |.Wh.....|.0......|
|00004c20| 04 2c ed 07 c9 bd c8 ff | a9 ec c8 ff 20 22 00 00 |.,......|.... "..|
|00004c30| 12 08 68 00 50 46 00 00 | 00 00 00 00 12 68 65 20 |..h.PF..|.....he |
|00004c40| 70 17 00 00 00 00 00 00 | 41 20 7a 65 72 6f 2d 77 |p.......|A zero-w|
|00004c50| 69 64 74 68 20 70 6f 73 | 69 74 69 76 65 20 6c 6f |idth pos|itive lo|
|00004c60| 6f 6b 61 68 65 61 64 20 | 61 73 73 65 72 74 69 6f |okahead |assertio|
|00004c70| 6e 2e 20 20 46 6f 72 20 | 65 78 61 6d 70 6c 65 2c |n. For |example,|
|00004c80| 20 07 65 72 0e 6c 68 00 | 13 57 68 00 0e 6c 68 00 | .er.lh.|.Wh..lh.|
|00004c90| 00 00 00 00 2f 5c 77 2b | 28 3f 3d 5c 74 29 2f 08 |..../\w+|(?=\t)/.|
|00004ca0| 0e 6d 68 00 13 57 68 00 | 00 00 00 00 20 6d 61 74 |.mh..Wh.|.... mat|
|00004cb0| 63 68 65 73 20 61 20 77 | 6f 72 64 20 66 6f 6c 6c |ches a w|ord foll|
|00004cc0| 6f 77 65 64 20 62 79 20 | 00 b0 00 00 a5 8c 00 00 |owed by |........|
|00004cd0| 40 30 c7 02 a2 85 c8 ff | 82 b4 c8 ff 20 22 00 00 |@0......|.... "..|
|00004ce0| 61 20 74 61 62 2c 20 77 | 69 74 68 6f 75 74 20 69 |a tab, w|ithout i|
|00004cf0| 6e 63 6c 75 64 69 6e 67 | 20 74 68 65 20 74 61 62 |ncluding| the tab|
|00004d00| 20 69 6e 20 07 62 08 05 | 0e 6e 68 00 13 57 68 00 | in .b..|.nh..Wh.|
|00004d10| 0e 6e 68 00 00 00 00 00 | 24 26 08 20 0e 6f 68 00 |.nh.....|$&. .oh.|
|00004d20| 13 57 68 00 00 00 00 00 | 2e 0d 07 72 14 70 68 00 |.Wh.....|...r.ph.|
|00004d30| 13 57 68 00 14 70 68 00 | 00 00 00 00 07 64 61 72 |.Wh..ph.|.....dar|
|00004d40| 09 71 68 00 13 57 68 00 | 14 70 68 00 09 71 68 00 |.qh..Wh.|.ph..qh.|
|00004d50| 00 00 00 00 00 8c 00 00 | a5 34 00 00 40 cc cc 00 |........|.4..@...|
|00004d60| cb 16 c8 ff ab 45 c8 ff | 28 23 00 00 28 3f 21 72 |.....E..|(#..(?!r|
|00004d70| 65 67 65 78 70 29 0d 08 | 09 72 68 00 13 57 68 00 |egexp)..|.rh..Wh.|
|00004d80| 14 70 68 00 00 00 00 00 | 00 34 00 00 85 d0 00 00 |.ph.....|.4......|
|00004d90| 04 e4 e9 07 a4 de c7 ff | 84 0d c8 ff 20 22 00 00 |........|.... "..|
|00004da0| 12 63 65 70 50 46 00 00 | 00 00 00 00 07 65 79 20 |.cepPF..|.....ey |
|00004db0| 14 73 68 00 13 57 68 00 | 14 73 68 00 00 00 00 00 |.sh..Wh.|.sh.....|
|00004dc0| 12 70 6c 65 70 17 00 00 | 00 00 00 00 41 20 7a 65 |.plep...|....A ze|
|00004dd0| 72 6f 2d 77 69 64 74 68 | 20 6e 65 67 61 74 69 76 |ro-width| negativ|
|00004de0| 65 20 6c 6f 6f 6b 61 68 | 65 61 64 20 61 73 73 65 |e lookah|ead asse|
|00004df0| 72 74 69 6f 6e 2e 20 20 | 46 6f 72 20 65 78 61 6d |rtion. |For exam|
|00004e00| 70 6c 65 20 07 69 6c 65 | 0e 74 68 00 13 57 68 00 |ple .ile|.th..Wh.|
|00004e10| 14 73 68 00 0e 74 68 00 | 00 00 00 00 2f 66 6f 6f |.sh..th.|..../foo|
|00004e20| 28 3f 21 62 61 72 29 2f | 08 69 6e 74 0e 75 68 00 |(?!bar)/|.int.uh.|
|00004e30| 13 57 68 00 14 73 68 00 | 00 00 00 00 20 6d 61 74 |.Wh..sh.|.... mat|
|00004e40| 63 68 65 73 20 61 6e 79 | 20 6f 63 63 75 72 72 65 |ches any| occurre|
|00004e50| 6e 63 65 20 6f 66 20 00 | 00 d0 00 00 05 7c 00 00 |nce of .|.....|..|
|00004e60| 00 80 42 07 7d a6 c7 ff | 5d d5 c7 ff 20 22 00 00 |..B.}...|]... "..|
|00004e70| 22 66 6f 6f 22 20 74 68 | 61 74 20 69 73 6e 27 74 |"foo" th|at isn't|
|00004e80| 20 66 6f 6c 6c 6f 77 65 | 64 20 62 79 20 22 62 61 | followe|d by "ba|
|00004e90| 72 22 2e 20 20 4e 6f 74 | 65 20 68 6f 77 65 76 65 |r". Not|e howeve|
|00004ea0| 72 20 74 68 61 74 20 6c | 6f 6f 6b 61 68 65 61 64 |r that l|ookahead|
|00004eb0| 20 61 6e 64 20 6c 6f 6f | 6b 62 65 68 69 6e 64 20 | and loo|kbehind |
|00004ec0| 61 72 65 20 4e 4f 54 20 | 74 68 65 20 73 61 6d 65 |are NOT |the same|
|00004ed0| 20 00 00 00 00 7c 00 00 | 85 ac 00 00 00 dc 9d 07 | ....|..|........|
|00004ee0| 56 6e c7 ff 36 9d c7 ff | 20 22 00 00 74 68 69 6e |Vn..6...| "..thin|
|00004ef0| 67 2e 20 20 59 6f 75 20 | 63 61 6e 6e 6f 74 20 75 |g. You |cannot u|
|00004f00| 73 65 20 74 68 69 73 20 | 66 6f 72 20 6c 6f 6f 6b |se this |for look|
|00004f10| 62 65 68 69 6e 64 3a 20 | 07 18 68 00 0e 76 68 00 |behind: |..h..vh.|
|00004f20| 13 57 68 00 14 73 68 00 | 0e 76 68 00 00 00 00 00 |.Wh..sh.|.vh.....|
|00004f30| 2f 28 3f 21 66 6f 6f 29 | 62 61 72 2f 08 6e 20 6f |/(?!foo)|bar/.n o|
|00004f40| 0e 77 68 00 13 57 68 00 | 14 73 68 00 00 00 00 00 |.wh..Wh.|.sh.....|
|00004f50| 20 77 69 6c 6c 20 6e 6f | 74 20 66 69 6e 64 20 61 | will no|t find a|
|00004f60| 6e 20 6f 63 63 75 72 72 | 65 6e 63 65 20 6f 66 20 |n occurr|ence of |
|00004f70| 22 62 61 72 22 20 74 68 | 61 74 20 69 73 20 00 00 |"bar" th|at is ..|
|00004f80| 00 ac 00 00 85 a4 00 00 | 00 c0 50 07 2f 36 c7 ff |........|..P./6..|
|00004f90| 0f 65 c7 ff 20 22 00 00 | 70 72 65 63 65 64 65 64 |.e.. "..|preceded|
|00004fa0| 20 62 79 20 73 6f 6d 65 | 74 68 69 6e 67 20 77 68 | by some|thing wh|
|00004fb0| 69 63 68 20 69 73 20 6e | 6f 74 20 22 66 6f 6f 22 |ich is n|ot "foo"|
|00004fc0| 2e 20 20 54 68 61 74 27 | 73 20 62 65 63 61 75 73 |. That'|s becaus|
|00004fd0| 65 20 74 68 65 20 07 20 | 0e 78 68 00 13 57 68 00 |e the . |.xh..Wh.|
|00004fe0| 14 73 68 00 0e 78 68 00 | 00 00 00 00 28 3f 21 66 |.sh..xh.|....(?!f|
|00004ff0| 6f 6f 29 08 0e 79 68 00 | 13 57 68 00 14 73 68 00 |oo)..yh.|.Wh..sh.|
|00005000| 00 00 00 00 20 69 73 20 | 6a 75 73 74 20 73 61 79 |.... is |just say|
|00005010| 69 6e 67 20 74 68 61 74 | 20 74 68 65 20 6e 65 78 |ing that| the nex|
|00005020| 74 20 00 00 00 a4 00 00 | 05 7c 00 00 00 b8 d4 06 |t ......|.|......|
|00005030| 08 fe c6 ff e8 2c c7 ff | 20 22 00 00 74 68 69 6e |.....,..| "..thin|
|00005040| 67 20 63 61 6e 6e 6f 74 | 20 62 65 20 22 66 6f 6f |g cannot| be "foo|
|00005050| 22 2d 2d 61 6e 64 20 69 | 74 27 73 20 6e 6f 74 2c |"--and i|t's not,|
|00005060| 20 69 74 27 73 20 61 20 | 22 62 61 72 22 2c 20 73 | it's a |"bar", s|
|00005070| 6f 20 22 66 6f 6f 62 61 | 72 22 20 77 69 6c 6c 20 |o "fooba|r" will |
|00005080| 6d 61 74 63 68 2e 20 20 | 59 6f 75 20 77 6f 75 6c |match. |You woul|
|00005090| 64 20 68 61 76 65 20 74 | 6f 20 64 6f 20 00 00 00 |d have t|o do ...|
|000050a0| 00 7c 00 00 85 a4 00 00 | 00 9c 98 07 e1 c5 c6 ff |.|......|........|
|000050b0| c1 f4 c6 ff 20 22 00 00 | 73 6f 6d 65 74 68 69 6e |.... "..|somethin|
|000050c0| 67 20 6c 69 6b 65 20 07 | 0e 7a 68 00 13 57 68 00 |g like .|.zh..Wh.|
|000050d0| 14 73 68 00 0e 7a 68 00 | 00 00 00 00 2f 28 3f 21 |.sh..zh.|..../(?!|
|000050e0| 66 6f 6f 29 2e 2e 2e 62 | 61 72 2f 08 0e 7b 68 00 |foo)...b|ar/..{h.|
|000050f0| 13 57 68 00 14 73 68 00 | 00 00 00 00 20 66 6f 72 |.Wh..sh.|.... for|
|00005100| 20 74 68 61 74 2e 20 20 | 20 57 65 20 73 61 79 20 | that. | We say |
|00005110| 22 6c 69 6b 65 22 20 62 | 65 63 61 75 73 65 20 74 |"like" b|ecause t|
|00005120| 68 65 72 65 27 73 20 74 | 68 65 20 63 61 73 65 20 |here's t|he case |
|00005130| 6f 66 20 79 6f 75 72 20 | 22 62 61 72 22 20 6e 6f |of your |"bar" no|
|00005140| 74 20 00 00 00 a4 00 00 | 85 a0 00 00 00 dc 73 07 |t ......|......s.|
|00005150| ba 8d c6 ff 9a bc c6 ff | 20 22 00 00 68 61 76 69 |........| "..havi|
|00005160| 6e 67 20 74 68 72 65 65 | 20 63 68 61 72 61 63 74 |ng three| charact|
|00005170| 65 72 73 20 62 65 66 6f | 72 65 20 69 74 2e 20 20 |ers befo|re it. |
|00005180| 59 6f 75 20 63 6f 75 6c | 64 20 63 6f 76 65 72 20 |You coul|d cover |
|00005190| 74 68 61 74 20 74 68 69 | 73 20 77 61 79 3a 20 07 |that thi|s way: .|
|000051a0| 0e 7c 68 00 13 57 68 00 | 14 73 68 00 0e 7c 68 00 |.|h..Wh.|.sh..|h.|
|000051b0| 00 00 00 00 2f 28 3f 3a | 28 3f 21 66 6f 6f 29 2e |..../(?:|(?!foo).|
|000051c0| 2e 2e 7c 5e 2e 2e 3f 29 | 62 61 72 2f 08 64 20 6f |..|^..?)|bar/.d o|
|000051d0| 0e 7d 68 00 13 57 68 00 | 14 73 68 00 00 00 00 00 |.}h..Wh.|.sh.....|
|000051e0| 2e 20 20 00 00 a0 00 00 | a5 7c 00 00 40 cc b2 02 |. .....|.|..@...|
|000051f0| 93 55 c6 ff 73 84 c6 ff | 20 22 00 00 53 6f 6d 65 |.U..s...| "..Some|
|00005200| 74 69 6d 65 73 20 69 74 | 27 73 20 73 74 69 6c 6c |times it|'s still|
|00005210| 20 65 61 73 69 65 72 20 | 6a 75 73 74 20 74 6f 20 | easier |just to |
|00005220| 73 61 79 3a 0d 08 75 74 | 14 00 00 00 13 57 68 00 |say:..ut|.....Wh.|
|00005230| 00 00 00 00 07 65 6e 74 | 12 7e 68 00 13 57 68 00 |.....ent|.~h..Wh.|
|00005240| 12 7e 68 00 00 00 00 00 | 07 6f 75 6c 0c 7f 68 00 |.~h.....|.oul..h.|
|00005250| 13 57 68 00 12 7e 68 00 | 0c 7f 68 00 00 00 00 00 |.Wh..~h.|..h.....|
|00005260| 00 7c 00 00 a5 68 00 00 | 40 60 61 02 8c ee c5 ff |.|...h..|@`a.....|
|00005270| 9c 15 c6 ff 70 1a 00 00 | 69 66 20 28 2f 66 6f 6f |....p...|if (/foo|
|00005280| 2f 20 26 26 20 24 60 20 | 3d 7e 20 2f 62 61 72 24 |/ && $` |=~ /bar$|
|00005290| 2f 29 0d 08 0c 80 68 00 | 13 57 68 00 12 7e 68 00 |/)....h.|.Wh..~h.|
|000052a0| 00 00 00 00 08 60 08 05 | 12 00 00 00 13 57 68 00 |.....`..|.....Wh.|
|000052b0| 00 00 00 00 07 25 68 00 | 18 81 68 00 13 57 68 00 |.....%h.|..h..Wh.|
|000052c0| 18 81 68 00 00 00 00 00 | 00 68 00 00 a5 54 00 00 |..h.....|.h...T..|
|000052d0| 40 00 00 00 fc d9 c5 ff | bc e6 c5 ff 00 00 00 00 |@.......|........|
|000052e0| 0d 08 08 05 18 82 68 00 | 13 57 68 00 00 00 00 00 |......h.|.Wh.....|
|000052f0| 07 65 6e 64 14 83 68 00 | 13 57 68 00 14 83 68 00 |.end..h.|.Wh...h.|
|00005300| 00 00 00 00 07 68 65 20 | 09 84 68 00 13 57 68 00 |.....he |..h..Wh.|
|00005310| 14 83 68 00 09 84 68 00 | 00 00 00 00 00 54 00 00 |..h...h.|.....T..|
|00005320| a5 34 00 00 40 68 94 00 | 2c 81 c5 ff 0c b0 c5 ff |.4..@h..|,.......|
|00005330| 28 23 00 00 28 3f 69 6d | 73 78 29 0d 08 73 66 75 |(#..(?im|sx)..sfu|
|00005340| 09 85 68 00 13 57 68 00 | 14 83 68 00 00 00 00 00 |..h..Wh.|..h.....|
|00005350| 00 34 00 00 85 a8 00 00 | 04 b4 62 07 05 49 c5 ff |.4......|..b..I..|
|00005360| e5 77 c5 ff 20 22 00 00 | 12 49 66 20 50 46 00 00 |.w.. "..|.If PF..|
|00005370| 00 00 00 00 07 74 6f 20 | 14 86 68 00 13 57 68 00 |.....to |..h..Wh.|
|00005380| 14 86 68 00 00 00 00 00 | 12 6f 20 64 70 17 00 00 |..h.....|.o dp...|
|00005390| 00 00 00 00 4f 6e 65 20 | 6f 72 20 6d 6f 72 65 20 |....One |or more |
|000053a0| 65 6d 62 65 64 64 65 64 | 20 70 61 74 74 65 72 6e |embedded| pattern|
|000053b0| 2d 6d 61 74 63 68 20 6d | 6f 64 69 66 69 65 72 73 |-match m|odifiers|
|000053c0| 2e 20 20 54 68 69 73 20 | 69 73 20 70 61 72 74 69 |. This |is parti|
|000053d0| 63 75 6c 61 72 6c 79 20 | 75 73 65 66 75 6c 20 66 |cularly |useful f|
|000053e0| 6f 72 20 70 61 74 74 65 | 72 6e 73 20 74 68 61 74 |or patte|rns that|
|000053f0| 20 61 72 65 20 00 00 00 | 00 a8 00 00 05 80 00 00 | are ...|........|
|00005400| 00 20 96 07 de 10 c5 ff | be 3f c5 ff 20 22 00 00 |. ......|.?.. "..|
|00005410| 73 70 65 63 69 66 69 65 | 64 20 69 6e 20 61 20 74 |specifie|d in a t|
|00005420| 61 62 6c 65 20 73 6f 6d | 65 77 68 65 72 65 2c 20 |able som|ewhere, |
|00005430| 73 6f 6d 65 20 6f 66 20 | 77 68 69 63 68 20 77 61 |some of |which wa|
|00005440| 6e 74 20 74 6f 20 62 65 | 20 63 61 73 65 20 73 65 |nt to be| case se|
|00005450| 6e 73 69 74 69 76 65 2c | 20 61 6e 64 20 73 6f 6d |nsitive,| and som|
|00005460| 65 20 6f 66 20 77 68 69 | 63 68 20 64 6f 6e 27 74 |e of whi|ch don't|
|00005470| 2e 20 20 54 68 65 20 00 | 00 80 00 00 a5 dc 00 00 |. The .|........|
|00005480| 40 b0 b5 06 b7 d8 c4 ff | 97 07 c5 ff 20 22 00 00 |@.......|.... "..|
|00005490| 63 61 73 65 20 69 6e 73 | 65 6e 73 69 74 69 76 65 |case ins|ensitive|
|000054a0| 20 6f 6e 65 73 20 6e 65 | 65 64 20 74 6f 20 69 6e | ones ne|ed to in|
|000054b0| 63 6c 75 64 65 20 6d 65 | 72 65 6c 79 20 07 6f 20 |clude me|rely .o |
|000054c0| 0e 87 68 00 13 57 68 00 | 14 86 68 00 0e 87 68 00 |..h..Wh.|..h...h.|
|000054d0| 00 00 00 00 28 3f 69 29 | 08 62 65 65 0e 88 68 00 |....(?i)|.bee..h.|
|000054e0| 13 57 68 00 14 86 68 00 | 00 00 00 00 20 61 74 20 |.Wh...h.|.... at |
|000054f0| 74 68 65 20 66 72 6f 6e | 74 20 6f 66 20 74 68 65 |the fron|t of the|
|00005500| 20 70 61 74 74 65 72 6e | 2e 20 20 46 6f 72 20 65 | pattern|. For e|
|00005510| 78 61 6d 70 6c 65 3a 0d | 08 65 2e 20 14 00 00 00 |xample:.|.e. ....|
|00005520| 13 57 68 00 00 00 00 00 | 07 6f 72 20 12 89 68 00 |.Wh.....|.or ..h.|
|00005530| 13 57 68 00 12 89 68 00 | 00 00 00 00 07 69 6c 69 |.Wh...h.|.....ili|
|00005540| 0c 8a 68 00 13 57 68 00 | 12 89 68 00 0c 8a 68 00 |..h..Wh.|..h...h.|
|00005550| 00 00 00 00 00 dc 00 00 | 25 30 00 00 40 c0 d4 01 |........|%0..@...|
|00005560| b0 71 c4 ff c0 98 c4 ff | 70 1a 00 00 24 70 61 74 |.q......|p...$pat|
|00005570| 74 65 72 6e 20 3d 20 22 | 66 6f 6f 62 61 72 22 3b |tern = "|foobar";|
|00005580| 0d 00 00 00 00 30 00 00 | a5 60 00 00 40 e0 a5 01 |.....0..|.`..@...|
|00005590| d0 42 c4 ff e0 69 c4 ff | 70 1a 00 00 69 66 20 28 |.B...i..|p...if (|
|000055a0| 20 2f 24 70 61 74 74 65 | 72 6e 2f 69 20 29 0d 08 | /$patte|rn/i )..|
|000055b0| 0c 8b 68 00 13 57 68 00 | 12 89 68 00 00 00 00 00 |..h..Wh.|..h.....|
|000055c0| 08 29 0d 07 12 00 00 00 | 13 57 68 00 00 00 00 00 |.)......|.Wh.....|
|000055d0| 07 05 05 05 18 8c 68 00 | 13 57 68 00 18 8c 68 00 |......h.|.Wh...h.|
|000055e0| 00 00 00 00 00 60 00 00 | a5 54 00 00 40 00 00 00 |.....`..|.T..@...|
|000055f0| 40 2e c4 ff 00 3b c4 ff | 00 00 00 00 0d 08 68 61 |@....;..|......ha|
|00005600| 18 8d 68 00 13 57 68 00 | 00 00 00 00 07 74 20 62 |..h..Wh.|.....t b|
|00005610| 12 8e 68 00 13 57 68 00 | 12 8e 68 00 00 00 00 00 |..h..Wh.|..h.....|
|00005620| 07 68 65 64 0c 8f 68 00 | 13 57 68 00 12 8e 68 00 |.hed..h.|.Wh...h.|
|00005630| 0c 8f 68 00 00 00 00 00 | 00 54 00 00 a5 60 00 00 |..h.....|.T...`..|
|00005640| 40 00 77 01 40 dd c3 ff | 50 04 c4 ff 70 1a 00 00 |@.w.@...|P...p...|
|00005650| 23 20 6d 6f 72 65 20 66 | 6c 65 78 69 62 6c 65 3a |# more f|lexible:|
|00005660| 0d 08 64 20 0c 90 68 00 | 13 57 68 00 12 8e 68 00 |..d ..h.|.Wh...h.|
|00005670| 00 00 00 00 08 29 68 00 | 12 00 00 00 13 57 68 00 |.....)h.|.....Wh.|
|00005680| 00 00 00 00 07 2f 68 00 | 18 91 68 00 13 57 68 00 |...../h.|..h..Wh.|
|00005690| 18 91 68 00 00 00 00 00 | 00 60 00 00 a5 54 00 00 |..h.....|.`...T..|
|000056a0| 40 00 00 00 b0 c8 c3 ff | 70 d5 c3 ff 00 00 00 00 |@.......|p.......|
|000056b0| 0d 08 74 20 18 92 68 00 | 13 57 68 00 00 00 00 00 |..t ..h.|.Wh.....|
|000056c0| 07 29 20 20 12 93 68 00 | 13 57 68 00 12 93 68 00 |.) ..h.|.Wh...h.|
|000056d0| 00 00 00 00 07 00 00 00 | 0c 94 68 00 13 57 68 00 |........|..h..Wh.|
|000056e0| 12 93 68 00 0c 94 68 00 | 00 00 00 00 00 54 00 00 |..h...h.|.....T..|
|000056f0| 25 34 00 00 40 80 32 02 | b0 77 c3 ff c0 9e c3 ff |%4..@.2.|.w......|
|00005700| 70 1a 00 00 24 70 61 74 | 74 65 72 6e 20 3d 20 22 |p...$pat|tern = "|
|00005710| 28 3f 69 29 66 6f 6f 62 | 61 72 22 3b 0d 00 00 00 |(?i)foob|ar";....|
|00005720| 00 34 00 00 a5 60 00 00 | 40 70 8e 01 d0 48 c3 ff |.4...`..|@p...H..|
|00005730| e0 6f c3 ff 70 1a 00 00 | 69 66 20 28 20 2f 24 70 |.o..p...|if ( /$p|
|00005740| 61 74 74 65 72 6e 2f 20 | 29 0d 08 68 0c 95 68 00 |attern/ |)..h..h.|
|00005750| 13 57 68 00 12 93 68 00 | 00 00 00 00 08 63 68 65 |.Wh...h.|.....che|
|00005760| 12 00 00 00 13 57 68 00 | 00 00 00 00 07 61 6d 70 |.....Wh.|.....amp|
|00005770| 18 96 68 00 13 57 68 00 | 18 96 68 00 00 00 00 00 |..h..Wh.|..h.....|
|00005780| 00 60 00 00 a5 34 00 00 | 40 00 00 00 40 34 c3 ff |.`...4..|@...@4..|
|00005790| 00 41 c3 ff 00 00 00 00 | 0d 08 68 00 18 97 68 00 |.A......|..h...h.|
|000057a0| 13 57 68 00 00 00 00 00 | 08 5e 20 5d 13 98 68 00 |.Wh.....|.^ ]..h.|
|000057b0| 00 00 00 00 00 34 00 00 | 05 7c 00 00 00 18 77 07 |.....4..|.|....w.|
|000057c0| 70 db c2 ff 50 0a c3 ff | 20 22 00 00 54 68 65 20 |p...P...| "..The |
|000057d0| 73 70 65 63 69 66 69 63 | 20 63 68 6f 69 63 65 20 |specific| choice |
|000057e0| 6f 66 20 71 75 65 73 74 | 69 6f 6e 20 6d 61 72 6b |of quest|ion mark|
|000057f0| 20 66 6f 72 20 74 68 69 | 73 20 61 6e 64 20 74 68 | for thi|s and th|
|00005800| 65 20 6e 65 77 20 6d 69 | 6e 69 6d 61 6c 20 6d 61 |e new mi|nimal ma|
|00005810| 74 63 68 69 6e 67 20 63 | 6f 6e 73 74 72 75 63 74 |tching c|onstruct|
|00005820| 20 77 61 73 20 62 65 63 | 61 75 73 65 20 31 29 20 | was bec|ause 1) |
|00005830| 00 7c 00 00 05 84 00 00 | 00 40 df 07 49 a3 c2 ff |.|......|.@..I...|
|00005840| 29 d2 c2 ff 20 22 00 00 | 71 75 65 73 74 69 6f 6e |)... "..|question|
|00005850| 20 6d 61 72 6b 20 69 73 | 20 70 72 65 74 74 79 20 | mark is| pretty |
|00005860| 72 61 72 65 20 69 6e 20 | 6f 6c 64 65 72 20 72 65 |rare in |older re|
|00005870| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00005880| 73 2c 20 61 6e 64 20 32 | 29 20 77 68 65 6e 65 76 |s, and 2|) whenev|
|00005890| 65 72 20 79 6f 75 20 73 | 65 65 20 6f 6e 65 2c 20 |er you s|ee one, |
|000058a0| 79 6f 75 20 73 68 6f 75 | 6c 64 20 73 74 6f 70 20 |you shou|ld stop |
|000058b0| 61 6e 64 20 00 84 00 00 | a5 60 00 00 40 00 32 04 |and ....|.`..@.2.|
|000058c0| 22 6b c2 ff 02 9a c2 ff | 20 22 00 00 22 71 75 65 |"k......| ".."que|
|000058d0| 73 74 69 6f 6e 22 20 65 | 78 61 63 74 6c 79 20 77 |stion" e|xactly w|
|000058e0| 68 61 74 20 69 73 20 67 | 6f 69 6e 67 20 6f 6e 2e |hat is g|oing on.|
|000058f0| 20 20 54 68 61 74 27 73 | 20 70 73 79 63 68 6f 6c | That's| psychol|
|00005900| 6f 67 79 2e 2e 2e 0d 07 | 0a 99 68 00 0a 99 68 00 |ogy.....|..h...h.|
|00005910| 00 00 00 00 00 60 00 00 | a5 30 00 00 40 08 39 01 |.....`..|.0..@.9.|
|00005920| 7b f4 c1 ff 2b 2b c2 ff | 18 2b 00 00 42 61 63 6b |{...++..|.+..Back|
|00005930| 74 72 61 63 6b 69 6e 67 | 0d 08 00 00 0a 9a 68 00 |tracking|......h.|
|00005940| 00 00 00 00 00 30 00 00 | 85 9c 00 00 00 b4 a4 07 |.....0..|........|
|00005950| 46 9f c1 ff 26 ce c1 ff | 20 22 00 00 41 20 66 75 |F...&...| "..A fu|
|00005960| 6e 64 61 6d 65 6e 74 61 | 6c 20 66 65 61 74 75 72 |ndamenta|l featur|
|00005970| 65 20 6f 66 20 72 65 67 | 75 6c 61 72 20 65 78 70 |e of reg|ular exp|
|00005980| 72 65 73 73 69 6f 6e 20 | 6d 61 74 63 68 69 6e 67 |ression |matching|
|00005990| 20 69 6e 76 6f 6c 76 65 | 73 20 74 68 65 20 6e 6f | involve|s the no|
|000059a0| 74 69 6f 6e 20 63 61 6c | 6c 65 64 20 07 2e 20 20 |tion cal|led .. |
|000059b0| 11 9b 68 00 11 9b 68 00 | 00 00 00 00 62 61 63 6b |..h...h.|....back|
|000059c0| 74 72 61 63 6b 69 6e 67 | 08 61 6e 64 11 00 00 00 |tracking|.and....|
|000059d0| 00 00 00 00 2e 20 20 77 | 68 69 63 68 20 69 73 20 |..... w|hich is |
|000059e0| 00 9c 00 00 a5 10 01 00 | 40 84 80 07 1f 67 c1 ff |........|@....g..|
|000059f0| ff 95 c1 ff 20 22 00 00 | 75 73 65 64 20 28 77 68 |.... "..|used (wh|
|00005a00| 65 6e 20 6e 65 65 64 65 | 64 29 20 62 79 20 61 6c |en neede|d) by al|
|00005a10| 6c 20 72 65 67 75 6c 61 | 72 20 65 78 70 72 65 73 |l regula|r expres|
|00005a20| 73 69 6f 6e 20 71 75 61 | 6e 74 69 66 69 65 72 73 |sion qua|ntifiers|
|00005a30| 2c 20 6e 61 6d 65 6c 79 | 20 07 69 6e 0e 9c 68 00 |, namely| .in..h.|
|00005a40| 0e 9c 68 00 00 00 00 00 | 2a 08 20 42 0e 9d 68 00 |..h.....|*. B..h.|
|00005a50| 00 00 00 00 2c 20 07 65 | 0e 9e 68 00 0e 9e 68 00 |...., .e|..h...h.|
|00005a60| 00 00 00 00 2a 3f 08 2e | 0e 9f 68 00 00 00 00 00 |....*?..|..h.....|
|00005a70| 2c 20 07 63 0e a0 68 00 | 0e a0 68 00 00 00 00 00 |, .c..h.|..h.....|
|00005a80| 2b 08 65 78 0e a1 68 00 | 00 00 00 00 2c 20 07 00 |+.ex..h.|...., ..|
|00005a90| 0e a2 68 00 0e a2 68 00 | 00 00 00 00 2b 3f 08 00 |..h...h.|....+?..|
|00005aa0| 0e a3 68 00 00 00 00 00 | 2c 20 07 69 0e a4 68 00 |..h.....|, .i..h.|
|00005ab0| 0e a4 68 00 00 00 00 00 | 7b 6e 2c 6d 7d 08 27 74 |..h.....|{n,m}.'t|
|00005ac0| 0e a5 68 00 00 00 00 00 | 2c 20 61 6e 64 20 07 53 |..h.....|, and .S|
|00005ad0| 0e a6 68 00 0e a6 68 00 | 00 00 00 00 7b 6e 2c 6d |..h...h.|....{n,m|
|00005ae0| 7d 3f 08 20 0e a7 68 00 | 00 00 00 00 2e 0d 00 00 |}?. ..h.|........|
|00005af0| 00 10 01 00 85 9c 00 00 | 00 a8 98 07 48 f8 c0 ff |........|....H...|
|00005b00| 28 27 c1 ff 20 22 00 00 | 46 6f 72 20 61 20 72 65 |('.. "..|For a re|
|00005b10| 67 75 6c 61 72 20 65 78 | 70 72 65 73 73 69 6f 6e |gular ex|pression|
|00005b20| 20 74 6f 20 6d 61 74 63 | 68 2c 20 74 68 65 20 07 | to matc|h, the .|
|00005b30| 11 a8 68 00 11 a8 68 00 | 00 00 00 00 65 6e 74 69 |..h...h.|....enti|
|00005b40| 72 65 08 74 11 00 00 00 | 00 00 00 00 20 72 65 67 |re.t....|.... reg|
|00005b50| 75 6c 61 72 20 65 78 70 | 72 65 73 73 69 6f 6e 20 |ular exp|ression |
|00005b60| 6d 75 73 74 20 6d 61 74 | 63 68 2c 20 6e 6f 74 20 |must mat|ch, not |
|00005b70| 6a 75 73 74 20 70 61 72 | 74 20 6f 66 20 69 74 2e |just par|t of it.|
|00005b80| 20 20 53 6f 20 69 66 20 | 74 68 65 20 00 9c 00 00 | So if |the ....|
|00005b90| 05 8c 00 00 00 cc d4 07 | 21 c0 c0 ff 01 ef c0 ff |........|!.......|
|00005ba0| 20 22 00 00 62 65 67 69 | 6e 6e 69 6e 67 20 6f 66 | "..begi|nning of|
|00005bb0| 20 61 20 70 61 74 74 65 | 72 6e 20 63 6f 6e 74 61 | a patte|rn conta|
|00005bc0| 69 6e 69 6e 67 20 61 20 | 71 75 61 6e 74 69 66 69 |ining a |quantifi|
|00005bd0| 65 72 20 73 75 63 63 65 | 65 64 73 20 69 6e 20 61 |er succe|eds in a|
|00005be0| 20 77 61 79 20 74 68 61 | 74 20 63 61 75 73 65 73 | way tha|t causes|
|00005bf0| 20 6c 61 74 65 72 20 70 | 61 72 74 73 20 69 6e 20 | later p|arts in |
|00005c00| 74 68 65 20 70 61 74 74 | 65 72 6e 20 74 6f 20 66 |the patt|ern to f|
|00005c10| 61 69 6c 2c 20 00 00 00 | 00 8c 00 00 a5 8c 00 00 |ail, ...|........|
|00005c20| 40 b4 68 07 fa 87 c0 ff | da b6 c0 ff 20 22 00 00 |@.h.....|.... "..|
|00005c30| 74 68 65 20 6d 61 74 63 | 68 69 6e 67 20 65 6e 67 |the matc|hing eng|
|00005c40| 69 6e 65 20 62 61 63 6b | 73 20 75 70 20 61 6e 64 |ine back|s up and|
|00005c50| 20 72 65 63 61 6c 63 75 | 6c 61 74 65 73 20 74 68 | recalcu|lates th|
|00005c60| 65 20 62 65 67 69 6e 6e | 69 6e 67 20 70 61 72 74 |e beginn|ing part|
|00005c70| 2d 2d 74 68 61 74 27 73 | 20 77 68 79 20 69 74 27 |--that's| why it'|
|00005c80| 73 20 63 61 6c 6c 65 64 | 20 62 61 63 6b 74 72 61 |s called| backtra|
|00005c90| 63 6b 69 6e 67 2e 0d 07 | 14 a9 68 00 14 a9 68 00 |cking...|..h...h.|
|00005ca0| 00 00 00 00 00 8c 00 00 | 01 10 00 00 01 b4 ef 07 |........|........|
|00005cb0| 00 00 00 00 00 10 00 00 | 02 18 00 00 d4 08 00 00 |........|........|
|00005cc0| 00 00 00 00 14 a9 68 00 | 00 00 00 00 00 18 00 00 |......h.|........|
|00005cd0| 05 94 00 00 00 b4 ef 07 | 0b 46 be ff eb 74 be ff |........|.F...t..|
|00005ce0| 20 22 00 00 16 00 00 00 | b0 fc 07 00 00 00 00 00 | "......|........|
|00005cf0| 48 65 72 65 20 69 73 20 | 61 6e 20 65 78 61 6d 70 |Here is |an examp|
|00005d00| 6c 65 20 6f 66 20 62 61 | 63 6b 74 72 61 63 6b 69 |le of ba|cktracki|
|00005d10| 6e 67 3a 20 20 4c 65 74 | 27 73 20 73 61 79 20 79 |ng: Let|'s say y|
|00005d20| 6f 75 20 77 61 6e 74 20 | 74 6f 20 66 69 6e 64 20 |ou want |to find |
|00005d30| 74 68 65 20 77 6f 72 64 | 20 66 6f 6c 6c 6f 77 69 |the word| followi|
|00005d40| 6e 67 20 22 66 6f 6f 22 | 20 69 6e 20 74 68 65 20 |ng "foo"| in the |
|00005d50| 73 74 72 69 6e 67 20 22 | 46 6f 6f 64 20 00 00 00 |string "|Food ...|
|00005d60| 00 94 00 00 a5 5c 00 00 | 40 c8 7b 01 e4 0d be ff |.....\..|@.{.....|
|00005d70| c4 3c be ff 20 22 00 00 | 69 73 20 6f 6e 20 74 68 |.<.. "..|is on th|
|00005d80| 65 20 66 6f 6f 20 74 61 | 62 6c 65 2e 22 3a 0d 08 |e foo ta|ble.":..|
|00005d90| 14 00 00 00 00 00 00 00 | 07 8e 72 fc 12 aa 68 00 |........|..r...h.|
|00005da0| 12 aa 68 00 00 00 00 00 | 07 6f 6e 74 0c ab 68 00 |..h.....|.ont..h.|
|00005db0| 12 aa 68 00 0c ab 68 00 | 00 00 00 00 00 5c 00 00 |..h...h.|.....\..|
|00005dc0| 25 3c 00 00 40 70 05 03 | dd a6 bd ff ed cd bd ff |%<..@p..|........|
|00005dd0| 70 1a 00 00 24 5f 20 3d | 20 22 46 6f 6f 64 20 69 |p...$_ =| "Food i|
|00005de0| 73 20 6f 6e 20 74 68 65 | 20 66 6f 6f 20 74 61 62 |s on the| foo tab|
|00005df0| 6c 65 2e 22 3b 0d 00 00 | 00 3c 00 00 25 34 00 00 |le.";...|.<..%4..|
|00005e00| 40 d0 78 02 fd 77 bd ff | 0d 9f bd ff 70 1a 00 00 |@.x..w..|....p...|
|00005e10| 69 66 20 28 20 2f 5c 62 | 28 66 6f 6f 29 5c 73 2b |if ( /\b|(foo)\s+|
|00005e20| 28 5c 77 2b 29 2f 69 20 | 29 20 7b 0d 00 34 00 00 |(\w+)/i |) {..4..|
|00005e30| 25 38 00 00 40 b0 a7 02 | 1d 49 bd ff 2d 70 bd ff |%8..@...|.I..-p..|
|00005e40| 70 1a 00 00 20 20 20 20 | 70 72 69 6e 74 20 22 24 |p... |print "$|
|00005e50| 32 20 66 6f 6c 6c 6f 77 | 73 20 24 31 2e 5c 6e 22 |2 follow|s $1.\n"|
|00005e60| 3b 0d 00 00 00 38 00 00 | a5 44 00 00 40 70 17 00 |;....8..|.D..@p..|
|00005e70| 3d 1a bd ff 4d 41 bd ff | 70 1a 00 00 7d 0d 08 65 |=...MA..|p...}..e|
|00005e80| 0c ac 68 00 12 aa 68 00 | 00 00 00 00 08 71 75 6f |..h...h.|.....quo|
|00005e90| 12 00 00 00 00 00 00 00 | 07 66 75 6e 18 ad 68 00 |........|.fun..h.|
|00005ea0| 18 ad 68 00 00 00 00 00 | 00 44 00 00 a5 24 00 00 |..h.....|.D...$..|
|00005eb0| 40 00 00 00 ad 05 bd ff | 6d 12 bd ff 00 00 00 00 |@.......|m.......|
|00005ec0| 0d 08 6f 20 18 ae 68 00 | 00 00 00 00 00 24 00 00 |..o ..h.|.....$..|
|00005ed0| 85 9c 00 00 00 f4 dc 07 | dd ac bc ff bd db bc ff |........|........|
|00005ee0| 20 22 00 00 57 68 65 6e | 20 74 68 65 20 6d 61 74 | "..When| the mat|
|00005ef0| 63 68 20 72 75 6e 73 2c | 20 74 68 65 20 66 69 72 |ch runs,| the fir|
|00005f00| 73 74 20 70 61 72 74 20 | 6f 66 20 74 68 65 20 72 |st part |of the r|
|00005f10| 65 67 75 6c 61 72 20 65 | 78 70 72 65 73 73 69 6f |egular e|xpressio|
|00005f20| 6e 20 28 07 0e af 68 00 | 0e af 68 00 00 00 00 00 |n (...h.|..h.....|
|00005f30| 5c 62 28 66 6f 6f 29 08 | 0e b0 68 00 00 00 00 00 |\b(foo).|..h.....|
|00005f40| 29 20 66 69 6e 64 73 20 | 61 20 70 6f 73 73 69 62 |) finds |a possib|
|00005f50| 6c 65 20 6d 61 74 63 68 | 20 72 69 67 68 74 20 61 |le match| right a|
|00005f60| 74 20 74 68 65 20 00 00 | 00 9c 00 00 05 80 00 00 |t the ..|........|
|00005f70| 00 08 99 07 b6 74 bc ff | 96 a3 bc ff 20 22 00 00 |.....t..|.... "..|
|00005f80| 62 65 67 69 6e 6e 69 6e | 67 20 6f 66 20 74 68 65 |beginnin|g of the|
|00005f90| 20 73 74 72 69 6e 67 2c | 20 61 6e 64 20 6c 6f 61 | string,| and loa|
|00005fa0| 64 73 20 75 70 20 24 31 | 20 77 69 74 68 20 22 46 |ds up $1| with "F|
|00005fb0| 6f 6f 22 2e 20 20 48 6f | 77 65 76 65 72 2c 20 61 |oo". Ho|wever, a|
|00005fc0| 73 20 73 6f 6f 6e 20 61 | 73 20 74 68 65 20 6d 61 |s soon a|s the ma|
|00005fd0| 74 63 68 69 6e 67 20 65 | 6e 67 69 6e 65 20 73 65 |tching e|ngine se|
|00005fe0| 65 73 20 74 68 61 74 20 | 00 80 00 00 05 8c 00 00 |es that |........|
|00005ff0| 00 9c e9 07 8f 3c bc ff | 6f 6b bc ff 20 22 00 00 |.....<..|ok.. "..|
|00006000| 74 68 65 72 65 27 73 20 | 6e 6f 20 77 68 69 74 65 |there's |no white|
|00006010| 73 70 61 63 65 20 66 6f | 6c 6c 6f 77 69 6e 67 20 |space fo|llowing |
|00006020| 74 68 65 20 22 46 6f 6f | 22 20 74 68 61 74 20 69 |the "Foo|" that i|
|00006030| 74 20 68 61 64 20 73 61 | 76 65 64 20 69 6e 20 24 |t had sa|ved in $|
|00006040| 31 2c 20 69 74 20 72 65 | 61 6c 69 7a 65 73 20 69 |1, it re|alizes i|
|00006050| 74 73 20 6d 69 73 74 61 | 6b 65 20 61 6e 64 20 73 |ts mista|ke and s|
|00006060| 74 61 72 74 73 20 6f 76 | 65 72 20 61 67 61 69 6e |tarts ov|er again|
|00006070| 20 00 00 00 00 8c 00 00 | 05 88 00 00 00 98 d2 07 | .......|........|
|00006080| 68 04 bc ff 48 33 bc ff | 20 22 00 00 6f 6e 65 20 |h...H3..| "..one |
|00006090| 63 68 61 72 61 63 74 65 | 72 20 61 66 74 65 72 20 |characte|r after |
|000060a0| 77 68 65 72 65 20 69 74 | 20 68 61 64 20 74 68 65 |where it| had the|
|000060b0| 20 74 65 6e 74 61 74 69 | 76 65 20 6d 61 74 63 68 | tentati|ve match|
|000060c0| 2e 20 20 54 68 69 73 20 | 74 69 6d 65 20 69 74 20 |. This |time it |
|000060d0| 67 6f 65 73 20 61 6c 6c | 20 74 68 65 20 77 61 79 |goes all| the way|
|000060e0| 20 75 6e 74 69 6c 20 74 | 68 65 20 6e 65 78 74 20 | until t|he next |
|000060f0| 6f 63 63 75 72 72 65 6e | 63 65 20 00 00 88 00 00 |occurren|ce .....|
|00006100| 05 80 00 00 00 cc 80 07 | 41 cc bb ff 21 fb bb ff |........|A...!...|
|00006110| 20 22 00 00 6f 66 20 22 | 66 6f 6f 22 2e 20 54 68 | "..of "|foo". Th|
|00006120| 65 20 63 6f 6d 70 6c 65 | 74 65 20 72 65 67 75 6c |e comple|te regul|
|00006130| 61 72 20 65 78 70 72 65 | 73 73 69 6f 6e 20 6d 61 |ar expre|ssion ma|
|00006140| 74 63 68 65 73 20 74 68 | 69 73 20 74 69 6d 65 2c |tches th|is time,|
|00006150| 20 61 6e 64 20 79 6f 75 | 20 67 65 74 20 74 68 65 | and you| get the|
|00006160| 20 65 78 70 65 63 74 65 | 64 20 6f 75 74 70 75 74 | expecte|d output|
|00006170| 20 6f 66 20 22 74 61 62 | 6c 65 20 00 00 80 00 00 | of "tab|le .....|
|00006180| a5 34 00 00 40 ac f5 00 | 1a 94 bb ff fa c2 bb ff |.4..@...|........|
|00006190| 20 22 00 00 66 6f 6c 6c | 6f 77 73 20 66 6f 6f 2e | "..foll|ows foo.|
|000061a0| 22 0d 07 6c 14 b1 68 00 | 14 b1 68 00 00 00 00 00 |"..l..h.|..h.....|
|000061b0| 00 34 00 00 05 80 00 00 | 00 a8 a4 07 43 25 bb ff |.4......|....C%..|
|000061c0| 23 54 bb ff 20 22 00 00 | 53 6f 6d 65 74 69 6d 65 |#T.. "..|Sometime|
|000061d0| 73 20 6d 69 6e 69 6d 61 | 6c 20 6d 61 74 63 68 69 |s minima|l matchi|
|000061e0| 6e 67 20 63 61 6e 20 68 | 65 6c 70 20 61 20 6c 6f |ng can h|elp a lo|
|000061f0| 74 2e 20 20 49 6d 61 67 | 69 6e 65 20 79 6f 75 27 |t. Imag|ine you'|
|00006200| 64 20 6c 69 6b 65 20 74 | 6f 20 6d 61 74 63 68 20 |d like t|o match |
|00006210| 65 76 65 72 79 74 68 69 | 6e 67 20 62 65 74 77 65 |everythi|ng betwe|
|00006220| 65 6e 20 22 66 6f 6f 22 | 20 61 6e 64 20 00 00 00 |en "foo"| and ...|
|00006230| 00 80 00 00 a5 78 00 00 | 40 08 5e 03 1c ed ba ff |.....x..|@.^.....|
|00006240| fc 1b bb ff 20 22 00 00 | 22 62 61 72 22 2e 20 20 |.... "..|"bar". |
|00006250| 49 6e 69 74 69 61 6c 6c | 79 2c 20 79 6f 75 20 77 |Initiall|y, you w|
|00006260| 72 69 74 65 20 73 6f 6d | 65 74 68 69 6e 67 20 6c |rite som|ething l|
|00006270| 69 6b 65 20 74 68 69 73 | 3a 0d 08 00 14 00 00 00 |ike this|:.......|
|00006280| 00 00 00 00 07 28 3f 3a | 12 b2 68 00 12 b2 68 00 |.....(?:|..h...h.|
|00006290| 00 00 00 00 07 62 68 00 | 0c b3 68 00 12 b2 68 00 |.....bh.|..h...h.|
|000062a0| 0c b3 68 00 00 00 00 00 | 00 78 00 00 25 48 00 00 |..h.....|.x..%H..|
|000062b0| 40 90 4d 04 15 86 ba ff | 25 ad ba ff 70 1a 00 00 |@.M.....|%...p...|
|000062c0| 24 5f 20 3d 20 20 22 54 | 68 65 20 66 6f 6f 64 20 |$_ = "T|he food |
|000062d0| 69 73 20 75 6e 64 65 72 | 20 74 68 65 20 62 61 72 |is under| the bar|
|000062e0| 20 69 6e 20 74 68 65 20 | 62 61 72 6e 2e 22 3b 0d | in the |barn.";.|
|000062f0| 00 48 00 00 25 30 00 00 | 40 30 ec 01 35 57 ba ff |.H..%0..|@0..5W..|
|00006300| 45 7e ba ff 70 1a 00 00 | 69 66 20 28 20 2f 66 6f |E~..p...|if ( /fo|
|00006310| 6f 28 2e 2a 29 62 61 72 | 2f 20 29 20 7b 0d 00 00 |o(.*)bar|/ ) {...|
|00006320| 00 30 00 00 25 30 00 00 | 40 10 1b 02 55 28 ba ff |.0..%0..|@...U(..|
|00006330| 65 4f ba ff 70 1a 00 00 | 20 20 20 20 70 72 69 6e |eO..p...| prin|
|00006340| 74 20 22 67 6f 74 20 3c | 24 31 3e 5c 6e 22 3b 0d |t "got <|$1>\n";.|
|00006350| 00 30 00 00 a5 44 00 00 | 40 70 17 00 75 f9 b9 ff |.0...D..|@p..u...|
|00006360| 85 20 ba ff 70 1a 00 00 | 7d 0d 08 75 0c b4 68 00 |. ..p...|}..u..h.|
|00006370| 12 b2 68 00 00 00 00 00 | 08 74 20 6f 12 00 00 00 |..h.....|.t o....|
|00006380| 00 00 00 00 07 66 69 65 | 18 b5 68 00 18 b5 68 00 |.....fie|..h...h.|
|00006390| 00 00 00 00 00 44 00 00 | a5 34 00 00 40 00 00 00 |.....D..|.4..@...|
|000063a0| e5 e4 b9 ff a5 f1 b9 ff | 00 00 00 00 0d 08 68 00 |........|......h.|
|000063b0| 18 b6 68 00 00 00 00 00 | 07 09 41 20 14 b7 68 00 |..h.....|..A ..h.|
|000063c0| 14 b7 68 00 00 00 00 00 | 00 34 00 00 a5 68 00 00 |..h.....|.4...h..|
|000063d0| 40 dc a8 02 15 8c b9 ff | f5 ba b9 ff 20 22 00 00 |@.......|.... "..|
|000063e0| 57 68 69 63 68 20 70 65 | 72 68 61 70 73 20 75 6e |Which pe|rhaps un|
|000063f0| 65 78 70 65 63 74 65 64 | 6c 79 20 79 69 65 6c 64 |expected|ly yield|
+--------+-------------------------+-------------------------+--------+--------+
Only 25.0 KB of data is shown above.