pcre2syntax.3 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681
  1. .TH PCRE2SYNTAX 3 "28 December 2019" "PCRE2 10.35"
  2. .SH NAME
  3. PCRE2 - Perl-compatible regular expressions (revised API)
  4. .SH "PCRE2 REGULAR EXPRESSION SYNTAX SUMMARY"
  5. .rs
  6. .sp
  7. The full syntax and semantics of the regular expressions that are supported by
  8. PCRE2 are described in the
  9. .\" HREF
  10. \fBpcre2pattern\fP
  11. .\"
  12. documentation. This document contains a quick-reference summary of the syntax.
  13. .
  14. .
  15. .SH "QUOTING"
  16. .rs
  17. .sp
  18. \ex where x is non-alphanumeric is a literal x
  19. \eQ...\eE treat enclosed characters as literal
  20. .
  21. .
  22. .SH "ESCAPED CHARACTERS"
  23. .rs
  24. .sp
  25. This table applies to ASCII and Unicode environments. An unrecognized escape
  26. sequence causes an error.
  27. .sp
  28. \ea alarm, that is, the BEL character (hex 07)
  29. \ecx "control-x", where x is any ASCII printing character
  30. \ee escape (hex 1B)
  31. \ef form feed (hex 0C)
  32. \en newline (hex 0A)
  33. \er carriage return (hex 0D)
  34. \et tab (hex 09)
  35. \e0dd character with octal code 0dd
  36. \eddd character with octal code ddd, or backreference
  37. \eo{ddd..} character with octal code ddd..
  38. \eN{U+hh..} character with Unicode code point hh.. (Unicode mode only)
  39. \exhh character with hex code hh
  40. \ex{hh..} character with hex code hh..
  41. .sp
  42. If PCRE2_ALT_BSUX or PCRE2_EXTRA_ALT_BSUX is set ("ALT_BSUX mode"), the
  43. following are also recognized:
  44. .sp
  45. \eU the character "U"
  46. \euhhhh character with hex code hhhh
  47. \eu{hh..} character with hex code hh.. but only for EXTRA_ALT_BSUX
  48. .sp
  49. When \ex is not followed by {, from zero to two hexadecimal digits are read,
  50. but in ALT_BSUX mode \ex must be followed by two hexadecimal digits to be
  51. recognized as a hexadecimal escape; otherwise it matches a literal "x".
  52. Likewise, if \eu (in ALT_BSUX mode) is not followed by four hexadecimal digits
  53. or (in EXTRA_ALT_BSUX mode) a sequence of hex digits in curly brackets, it
  54. matches a literal "u".
  55. .P
  56. Note that \e0dd is always an octal code. The treatment of backslash followed by
  57. a non-zero digit is complicated; for details see the section
  58. .\" HTML <a href="pcre2pattern.html#digitsafterbackslash">
  59. .\" </a>
  60. "Non-printing characters"
  61. .\"
  62. in the
  63. .\" HREF
  64. \fBpcre2pattern\fP
  65. .\"
  66. documentation, where details of escape processing in EBCDIC environments are
  67. also given. \eN{U+hh..} is synonymous with \ex{hh..} in PCRE2 but is not
  68. supported in EBCDIC environments. Note that \eN not followed by an opening
  69. curly bracket has a different meaning (see below).
  70. .
  71. .
  72. .SH "CHARACTER TYPES"
  73. .rs
  74. .sp
  75. . any character except newline;
  76. in dotall mode, any character whatsoever
  77. \eC one code unit, even in UTF mode (best avoided)
  78. \ed a decimal digit
  79. \eD a character that is not a decimal digit
  80. \eh a horizontal white space character
  81. \eH a character that is not a horizontal white space character
  82. \eN a character that is not a newline
  83. \ep{\fIxx\fP} a character with the \fIxx\fP property
  84. \eP{\fIxx\fP} a character without the \fIxx\fP property
  85. \eR a newline sequence
  86. \es a white space character
  87. \eS a character that is not a white space character
  88. \ev a vertical white space character
  89. \eV a character that is not a vertical white space character
  90. \ew a "word" character
  91. \eW a "non-word" character
  92. \eX a Unicode extended grapheme cluster
  93. .sp
  94. \eC is dangerous because it may leave the current matching point in the middle
  95. of a UTF-8 or UTF-16 character. The application can lock out the use of \eC by
  96. setting the PCRE2_NEVER_BACKSLASH_C option. It is also possible to build PCRE2
  97. with the use of \eC permanently disabled.
  98. .P
  99. By default, \ed, \es, and \ew match only ASCII characters, even in UTF-8 mode
  100. or in the 16-bit and 32-bit libraries. However, if locale-specific matching is
  101. happening, \es and \ew may also match characters with code points in the range
  102. 128-255. If the PCRE2_UCP option is set, the behaviour of these escape
  103. sequences is changed to use Unicode properties and they match many more
  104. characters.
  105. .
  106. .
  107. .SH "GENERAL CATEGORY PROPERTIES FOR \ep and \eP"
  108. .rs
  109. .sp
  110. C Other
  111. Cc Control
  112. Cf Format
  113. Cn Unassigned
  114. Co Private use
  115. Cs Surrogate
  116. .sp
  117. L Letter
  118. Ll Lower case letter
  119. Lm Modifier letter
  120. Lo Other letter
  121. Lt Title case letter
  122. Lu Upper case letter
  123. L& Ll, Lu, or Lt
  124. .sp
  125. M Mark
  126. Mc Spacing mark
  127. Me Enclosing mark
  128. Mn Non-spacing mark
  129. .sp
  130. N Number
  131. Nd Decimal number
  132. Nl Letter number
  133. No Other number
  134. .sp
  135. P Punctuation
  136. Pc Connector punctuation
  137. Pd Dash punctuation
  138. Pe Close punctuation
  139. Pf Final punctuation
  140. Pi Initial punctuation
  141. Po Other punctuation
  142. Ps Open punctuation
  143. .sp
  144. S Symbol
  145. Sc Currency symbol
  146. Sk Modifier symbol
  147. Sm Mathematical symbol
  148. So Other symbol
  149. .sp
  150. Z Separator
  151. Zl Line separator
  152. Zp Paragraph separator
  153. Zs Space separator
  154. .
  155. .
  156. .SH "PCRE2 SPECIAL CATEGORY PROPERTIES FOR \ep and \eP"
  157. .rs
  158. .sp
  159. Xan Alphanumeric: union of properties L and N
  160. Xps POSIX space: property Z or tab, NL, VT, FF, CR
  161. Xsp Perl space: property Z or tab, NL, VT, FF, CR
  162. Xuc Univerally-named character: one that can be
  163. represented by a Universal Character Name
  164. Xwd Perl word: property Xan or underscore
  165. .sp
  166. Perl and POSIX space are now the same. Perl added VT to its space character set
  167. at release 5.18.
  168. .
  169. .
  170. .SH "SCRIPT NAMES FOR \ep AND \eP"
  171. .rs
  172. .sp
  173. Adlam,
  174. Ahom,
  175. Anatolian_Hieroglyphs,
  176. Arabic,
  177. Armenian,
  178. Avestan,
  179. Balinese,
  180. Bamum,
  181. Bassa_Vah,
  182. Batak,
  183. Bengali,
  184. Bhaiksuki,
  185. Bopomofo,
  186. Brahmi,
  187. Braille,
  188. Buginese,
  189. Buhid,
  190. Canadian_Aboriginal,
  191. Carian,
  192. Caucasian_Albanian,
  193. Chakma,
  194. Cham,
  195. Cherokee,
  196. Chorasmian,
  197. Common,
  198. Coptic,
  199. Cuneiform,
  200. Cypriot,
  201. Cyrillic,
  202. Deseret,
  203. Devanagari,
  204. Dives_Akuru,
  205. Dogra,
  206. Duployan,
  207. Egyptian_Hieroglyphs,
  208. Elbasan,
  209. Elymaic,
  210. Ethiopic,
  211. Georgian,
  212. Glagolitic,
  213. Gothic,
  214. Grantha,
  215. Greek,
  216. Gujarati,
  217. Gunjala_Gondi,
  218. Gurmukhi,
  219. Han,
  220. Hangul,
  221. Hanifi_Rohingya,
  222. Hanunoo,
  223. Hatran,
  224. Hebrew,
  225. Hiragana,
  226. Imperial_Aramaic,
  227. Inherited,
  228. Inscriptional_Pahlavi,
  229. Inscriptional_Parthian,
  230. Javanese,
  231. Kaithi,
  232. Kannada,
  233. Katakana,
  234. Kayah_Li,
  235. Kharoshthi,
  236. Khitan_Small_Script,
  237. Khmer,
  238. Khojki,
  239. Khudawadi,
  240. Lao,
  241. Latin,
  242. Lepcha,
  243. Limbu,
  244. Linear_A,
  245. Linear_B,
  246. Lisu,
  247. Lycian,
  248. Lydian,
  249. Mahajani,
  250. Makasar,
  251. Malayalam,
  252. Mandaic,
  253. Manichaean,
  254. Marchen,
  255. Masaram_Gondi,
  256. Medefaidrin,
  257. Meetei_Mayek,
  258. Mende_Kikakui,
  259. Meroitic_Cursive,
  260. Meroitic_Hieroglyphs,
  261. Miao,
  262. Modi,
  263. Mongolian,
  264. Mro,
  265. Multani,
  266. Myanmar,
  267. Nabataean,
  268. Nandinagari,
  269. New_Tai_Lue,
  270. Newa,
  271. Nko,
  272. Nushu,
  273. Nyakeng_Puachue_Hmong,
  274. Ogham,
  275. Ol_Chiki,
  276. Old_Hungarian,
  277. Old_Italic,
  278. Old_North_Arabian,
  279. Old_Permic,
  280. Old_Persian,
  281. Old_Sogdian,
  282. Old_South_Arabian,
  283. Old_Turkic,
  284. Oriya,
  285. Osage,
  286. Osmanya,
  287. Pahawh_Hmong,
  288. Palmyrene,
  289. Pau_Cin_Hau,
  290. Phags_Pa,
  291. Phoenician,
  292. Psalter_Pahlavi,
  293. Rejang,
  294. Runic,
  295. Samaritan,
  296. Saurashtra,
  297. Sharada,
  298. Shavian,
  299. Siddham,
  300. SignWriting,
  301. Sinhala,
  302. Sogdian,
  303. Sora_Sompeng,
  304. Soyombo,
  305. Sundanese,
  306. Syloti_Nagri,
  307. Syriac,
  308. Tagalog,
  309. Tagbanwa,
  310. Tai_Le,
  311. Tai_Tham,
  312. Tai_Viet,
  313. Takri,
  314. Tamil,
  315. Tangut,
  316. Telugu,
  317. Thaana,
  318. Thai,
  319. Tibetan,
  320. Tifinagh,
  321. Tirhuta,
  322. Ugaritic,
  323. Vai,
  324. Wancho,
  325. Warang_Citi,
  326. Yezidi,
  327. Yi,
  328. Zanabazar_Square.
  329. .
  330. .
  331. .SH "CHARACTER CLASSES"
  332. .rs
  333. .sp
  334. [...] positive character class
  335. [^...] negative character class
  336. [x-y] range (can be used for hex characters)
  337. [[:xxx:]] positive POSIX named set
  338. [[:^xxx:]] negative POSIX named set
  339. .sp
  340. alnum alphanumeric
  341. alpha alphabetic
  342. ascii 0-127
  343. blank space or tab
  344. cntrl control character
  345. digit decimal digit
  346. graph printing, excluding space
  347. lower lower case letter
  348. print printing, including space
  349. punct printing, excluding alphanumeric
  350. space white space
  351. upper upper case letter
  352. word same as \ew
  353. xdigit hexadecimal digit
  354. .sp
  355. In PCRE2, POSIX character set names recognize only ASCII characters by default,
  356. but some of them use Unicode properties if PCRE2_UCP is set. You can use
  357. \eQ...\eE inside a character class.
  358. .
  359. .
  360. .SH "QUANTIFIERS"
  361. .rs
  362. .sp
  363. ? 0 or 1, greedy
  364. ?+ 0 or 1, possessive
  365. ?? 0 or 1, lazy
  366. * 0 or more, greedy
  367. *+ 0 or more, possessive
  368. *? 0 or more, lazy
  369. + 1 or more, greedy
  370. ++ 1 or more, possessive
  371. +? 1 or more, lazy
  372. {n} exactly n
  373. {n,m} at least n, no more than m, greedy
  374. {n,m}+ at least n, no more than m, possessive
  375. {n,m}? at least n, no more than m, lazy
  376. {n,} n or more, greedy
  377. {n,}+ n or more, possessive
  378. {n,}? n or more, lazy
  379. .
  380. .
  381. .SH "ANCHORS AND SIMPLE ASSERTIONS"
  382. .rs
  383. .sp
  384. \eb word boundary
  385. \eB not a word boundary
  386. ^ start of subject
  387. also after an internal newline in multiline mode
  388. (after any newline if PCRE2_ALT_CIRCUMFLEX is set)
  389. \eA start of subject
  390. $ end of subject
  391. also before newline at end of subject
  392. also before internal newline in multiline mode
  393. \eZ end of subject
  394. also before newline at end of subject
  395. \ez end of subject
  396. \eG first matching position in subject
  397. .
  398. .
  399. .SH "REPORTED MATCH POINT SETTING"
  400. .rs
  401. .sp
  402. \eK set reported start of match
  403. .sp
  404. \eK is honoured in positive assertions, but ignored in negative ones.
  405. .
  406. .
  407. .SH "ALTERNATION"
  408. .rs
  409. .sp
  410. expr|expr|expr...
  411. .
  412. .
  413. .SH "CAPTURING"
  414. .rs
  415. .sp
  416. (...) capture group
  417. (?<name>...) named capture group (Perl)
  418. (?'name'...) named capture group (Perl)
  419. (?P<name>...) named capture group (Python)
  420. (?:...) non-capture group
  421. (?|...) non-capture group; reset group numbers for
  422. capture groups in each alternative
  423. .sp
  424. In non-UTF modes, names may contain underscores and ASCII letters and digits;
  425. in UTF modes, any Unicode letters and Unicode decimal digits are permitted. In
  426. both cases, a name must not start with a digit.
  427. .
  428. .
  429. .SH "ATOMIC GROUPS"
  430. .rs
  431. .sp
  432. (?>...) atomic non-capture group
  433. (*atomic:...) atomic non-capture group
  434. .
  435. .
  436. .SH "COMMENT"
  437. .rs
  438. .sp
  439. (?#....) comment (not nestable)
  440. .
  441. .
  442. .SH "OPTION SETTING"
  443. .rs
  444. Changes of these options within a group are automatically cancelled at the end
  445. of the group.
  446. .sp
  447. (?i) caseless
  448. (?J) allow duplicate named groups
  449. (?m) multiline
  450. (?n) no auto capture
  451. (?s) single line (dotall)
  452. (?U) default ungreedy (lazy)
  453. (?x) extended: ignore white space except in classes
  454. (?xx) as (?x) but also ignore space and tab in classes
  455. (?-...) unset option(s)
  456. (?^) unset imnsx options
  457. .sp
  458. Unsetting x or xx unsets both. Several options may be set at once, and a
  459. mixture of setting and unsetting such as (?i-x) is allowed, but there may be
  460. only one hyphen. Setting (but no unsetting) is allowed after (?^ for example
  461. (?^in). An option setting may appear at the start of a non-capture group, for
  462. example (?i:...).
  463. .P
  464. The following are recognized only at the very start of a pattern or after one
  465. of the newline or \eR options with similar syntax. More than one of them may
  466. appear. For the first three, d is a decimal number.
  467. .sp
  468. (*LIMIT_DEPTH=d) set the backtracking limit to d
  469. (*LIMIT_HEAP=d) set the heap size limit to d * 1024 bytes
  470. (*LIMIT_MATCH=d) set the match limit to d
  471. (*NOTEMPTY) set PCRE2_NOTEMPTY when matching
  472. (*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching
  473. (*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS)
  474. (*NO_DOTSTAR_ANCHOR) no .* anchoring (PCRE2_NO_DOTSTAR_ANCHOR)
  475. (*NO_JIT) disable JIT optimization
  476. (*NO_START_OPT) no start-match optimization (PCRE2_NO_START_OPTIMIZE)
  477. (*UTF) set appropriate UTF mode for the library in use
  478. (*UCP) set PCRE2_UCP (use Unicode properties for \ed etc)
  479. .sp
  480. Note that LIMIT_DEPTH, LIMIT_HEAP, and LIMIT_MATCH can only reduce the value of
  481. the limits set by the caller of \fBpcre2_match()\fP or \fBpcre2_dfa_match()\fP,
  482. not increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The
  483. application can lock out the use of (*UTF) and (*UCP) by setting the
  484. PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time.
  485. .
  486. .
  487. .SH "NEWLINE CONVENTION"
  488. .rs
  489. .sp
  490. These are recognized only at the very start of the pattern or after option
  491. settings with a similar syntax.
  492. .sp
  493. (*CR) carriage return only
  494. (*LF) linefeed only
  495. (*CRLF) carriage return followed by linefeed
  496. (*ANYCRLF) all three of the above
  497. (*ANY) any Unicode newline sequence
  498. (*NUL) the NUL character (binary zero)
  499. .
  500. .
  501. .SH "WHAT \eR MATCHES"
  502. .rs
  503. .sp
  504. These are recognized only at the very start of the pattern or after option
  505. setting with a similar syntax.
  506. .sp
  507. (*BSR_ANYCRLF) CR, LF, or CRLF
  508. (*BSR_UNICODE) any Unicode newline sequence
  509. .
  510. .
  511. .SH "LOOKAHEAD AND LOOKBEHIND ASSERTIONS"
  512. .rs
  513. .sp
  514. (?=...) )
  515. (*pla:...) ) positive lookahead
  516. (*positive_lookahead:...) )
  517. .sp
  518. (?!...) )
  519. (*nla:...) ) negative lookahead
  520. (*negative_lookahead:...) )
  521. .sp
  522. (?<=...) )
  523. (*plb:...) ) positive lookbehind
  524. (*positive_lookbehind:...) )
  525. .sp
  526. (?<!...) )
  527. (*nlb:...) ) negative lookbehind
  528. (*negative_lookbehind:...) )
  529. .sp
  530. Each top-level branch of a lookbehind must be of a fixed length.
  531. .
  532. .
  533. .SH "NON-ATOMIC LOOKAROUND ASSERTIONS"
  534. .rs
  535. .sp
  536. These assertions are specific to PCRE2 and are not Perl-compatible.
  537. .sp
  538. (?*...) )
  539. (*napla:...) ) synonyms
  540. (*non_atomic_positive_lookahead:...) )
  541. .sp
  542. (?<*...) )
  543. (*naplb:...) ) synonyms
  544. (*non_atomic_positive_lookbehind:...) )
  545. .
  546. .
  547. .SH "SCRIPT RUNS"
  548. .rs
  549. .sp
  550. (*script_run:...) ) script run, can be backtracked into
  551. (*sr:...) )
  552. .sp
  553. (*atomic_script_run:...) ) atomic script run
  554. (*asr:...) )
  555. .
  556. .
  557. .SH "BACKREFERENCES"
  558. .rs
  559. .sp
  560. \en reference by number (can be ambiguous)
  561. \egn reference by number
  562. \eg{n} reference by number
  563. \eg+n relative reference by number (PCRE2 extension)
  564. \eg-n relative reference by number
  565. \eg{+n} relative reference by number (PCRE2 extension)
  566. \eg{-n} relative reference by number
  567. \ek<name> reference by name (Perl)
  568. \ek'name' reference by name (Perl)
  569. \eg{name} reference by name (Perl)
  570. \ek{name} reference by name (.NET)
  571. (?P=name) reference by name (Python)
  572. .
  573. .
  574. .SH "SUBROUTINE REFERENCES (POSSIBLY RECURSIVE)"
  575. .rs
  576. .sp
  577. (?R) recurse whole pattern
  578. (?n) call subroutine by absolute number
  579. (?+n) call subroutine by relative number
  580. (?-n) call subroutine by relative number
  581. (?&name) call subroutine by name (Perl)
  582. (?P>name) call subroutine by name (Python)
  583. \eg<name> call subroutine by name (Oniguruma)
  584. \eg'name' call subroutine by name (Oniguruma)
  585. \eg<n> call subroutine by absolute number (Oniguruma)
  586. \eg'n' call subroutine by absolute number (Oniguruma)
  587. \eg<+n> call subroutine by relative number (PCRE2 extension)
  588. \eg'+n' call subroutine by relative number (PCRE2 extension)
  589. \eg<-n> call subroutine by relative number (PCRE2 extension)
  590. \eg'-n' call subroutine by relative number (PCRE2 extension)
  591. .
  592. .
  593. .SH "CONDITIONAL PATTERNS"
  594. .rs
  595. .sp
  596. (?(condition)yes-pattern)
  597. (?(condition)yes-pattern|no-pattern)
  598. .sp
  599. (?(n) absolute reference condition
  600. (?(+n) relative reference condition
  601. (?(-n) relative reference condition
  602. (?(<name>) named reference condition (Perl)
  603. (?('name') named reference condition (Perl)
  604. (?(name) named reference condition (PCRE2, deprecated)
  605. (?(R) overall recursion condition
  606. (?(Rn) specific numbered group recursion condition
  607. (?(R&name) specific named group recursion condition
  608. (?(DEFINE) define groups for reference
  609. (?(VERSION[>]=n.m) test PCRE2 version
  610. (?(assert) assertion condition
  611. .sp
  612. Note the ambiguity of (?(R) and (?(Rn) which might be named reference
  613. conditions or recursion tests. Such a condition is interpreted as a reference
  614. condition if the relevant named group exists.
  615. .
  616. .
  617. .SH "BACKTRACKING CONTROL"
  618. .rs
  619. .sp
  620. All backtracking control verbs may be in the form (*VERB:NAME). For (*MARK) the
  621. name is mandatory, for the others it is optional. (*SKIP) changes its behaviour
  622. if :NAME is present. The others just set a name for passing back to the caller,
  623. but this is not a name that (*SKIP) can see. The following act immediately they
  624. are reached:
  625. .sp
  626. (*ACCEPT) force successful match
  627. (*FAIL) force backtrack; synonym (*F)
  628. (*MARK:NAME) set name to be passed back; synonym (*:NAME)
  629. .sp
  630. The following act only when a subsequent match failure causes a backtrack to
  631. reach them. They all force a match failure, but they differ in what happens
  632. afterwards. Those that advance the start-of-match point do so only if the
  633. pattern is not anchored.
  634. .sp
  635. (*COMMIT) overall failure, no advance of starting point
  636. (*PRUNE) advance to next starting character
  637. (*SKIP) advance to current matching position
  638. (*SKIP:NAME) advance to position corresponding to an earlier
  639. (*MARK:NAME); if not found, the (*SKIP) is ignored
  640. (*THEN) local failure, backtrack to next alternation
  641. .sp
  642. The effect of one of these verbs in a group called as a subroutine is confined
  643. to the subroutine call.
  644. .
  645. .
  646. .SH "CALLOUTS"
  647. .rs
  648. .sp
  649. (?C) callout (assumed number 0)
  650. (?Cn) callout with numerical data n
  651. (?C"text") callout with string data
  652. .sp
  653. The allowed string delimiters are ` ' " ^ % # $ (which are the same for the
  654. start and the end), and the starting delimiter { matched with the ending
  655. delimiter }. To encode the ending delimiter within the string, double it.
  656. .
  657. .
  658. .SH "SEE ALSO"
  659. .rs
  660. .sp
  661. \fBpcre2pattern\fP(3), \fBpcre2api\fP(3), \fBpcre2callout\fP(3),
  662. \fBpcre2matching\fP(3), \fBpcre2\fP(3).
  663. .
  664. .
  665. .SH AUTHOR
  666. .rs
  667. .sp
  668. .nf
  669. Philip Hazel
  670. University Computing Service
  671. Cambridge, England.
  672. .fi
  673. .
  674. .
  675. .SH REVISION
  676. .rs
  677. .sp
  678. .nf
  679. Last updated: 28 December 2019
  680. Copyright (c) 1997-2019 University of Cambridge.
  681. .fi