pcre2syntax.3 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689
  1. .TH PCRE2SYNTAX 3 "30 August 2021" "PCRE2 10.38"
  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. Cypro_Minoan,
  202. Cyrillic,
  203. Deseret,
  204. Devanagari,
  205. Dives_Akuru,
  206. Dogra,
  207. Duployan,
  208. Egyptian_Hieroglyphs,
  209. Elbasan,
  210. Elymaic,
  211. Ethiopic,
  212. Georgian,
  213. Glagolitic,
  214. Gothic,
  215. Grantha,
  216. Greek,
  217. Gujarati,
  218. Gunjala_Gondi,
  219. Gurmukhi,
  220. Han,
  221. Hangul,
  222. Hanifi_Rohingya,
  223. Hanunoo,
  224. Hatran,
  225. Hebrew,
  226. Hiragana,
  227. Imperial_Aramaic,
  228. Inherited,
  229. Inscriptional_Pahlavi,
  230. Inscriptional_Parthian,
  231. Javanese,
  232. Kaithi,
  233. Kannada,
  234. Katakana,
  235. Kayah_Li,
  236. Kharoshthi,
  237. Khitan_Small_Script,
  238. Khmer,
  239. Khojki,
  240. Khudawadi,
  241. Lao,
  242. Latin,
  243. Lepcha,
  244. Limbu,
  245. Linear_A,
  246. Linear_B,
  247. Lisu,
  248. Lycian,
  249. Lydian,
  250. Mahajani,
  251. Makasar,
  252. Malayalam,
  253. Mandaic,
  254. Manichaean,
  255. Marchen,
  256. Masaram_Gondi,
  257. Medefaidrin,
  258. Meetei_Mayek,
  259. Mende_Kikakui,
  260. Meroitic_Cursive,
  261. Meroitic_Hieroglyphs,
  262. Miao,
  263. Modi,
  264. Mongolian,
  265. Mro,
  266. Multani,
  267. Myanmar,
  268. Nabataean,
  269. Nandinagari,
  270. New_Tai_Lue,
  271. Newa,
  272. Nko,
  273. Nushu,
  274. Nyakeng_Puachue_Hmong,
  275. Ogham,
  276. Ol_Chiki,
  277. Old_Hungarian,
  278. Old_Italic,
  279. Old_North_Arabian,
  280. Old_Permic,
  281. Old_Persian,
  282. Old_Sogdian,
  283. Old_South_Arabian,
  284. Old_Turkic,
  285. Old_Uyghur,
  286. Oriya,
  287. Osage,
  288. Osmanya,
  289. Pahawh_Hmong,
  290. Palmyrene,
  291. Pau_Cin_Hau,
  292. Phags_Pa,
  293. Phoenician,
  294. Psalter_Pahlavi,
  295. Rejang,
  296. Runic,
  297. Samaritan,
  298. Saurashtra,
  299. Sharada,
  300. Shavian,
  301. Siddham,
  302. SignWriting,
  303. Sinhala,
  304. Sogdian,
  305. Sora_Sompeng,
  306. Soyombo,
  307. Sundanese,
  308. Syloti_Nagri,
  309. Syriac,
  310. Tagalog,
  311. Tagbanwa,
  312. Tai_Le,
  313. Tai_Tham,
  314. Tai_Viet,
  315. Takri,
  316. Tamil,
  317. Tangsa,
  318. Tangut,
  319. Telugu,
  320. Thaana,
  321. Thai,
  322. Tibetan,
  323. Tifinagh,
  324. Tirhuta,
  325. Toto,
  326. Ugaritic,
  327. Vai,
  328. Vithkuqi,
  329. Wancho,
  330. Warang_Citi,
  331. Yezidi,
  332. Yi,
  333. Zanabazar_Square.
  334. .
  335. .
  336. .SH "CHARACTER CLASSES"
  337. .rs
  338. .sp
  339. [...] positive character class
  340. [^...] negative character class
  341. [x-y] range (can be used for hex characters)
  342. [[:xxx:]] positive POSIX named set
  343. [[:^xxx:]] negative POSIX named set
  344. .sp
  345. alnum alphanumeric
  346. alpha alphabetic
  347. ascii 0-127
  348. blank space or tab
  349. cntrl control character
  350. digit decimal digit
  351. graph printing, excluding space
  352. lower lower case letter
  353. print printing, including space
  354. punct printing, excluding alphanumeric
  355. space white space
  356. upper upper case letter
  357. word same as \ew
  358. xdigit hexadecimal digit
  359. .sp
  360. In PCRE2, POSIX character set names recognize only ASCII characters by default,
  361. but some of them use Unicode properties if PCRE2_UCP is set. You can use
  362. \eQ...\eE inside a character class.
  363. .
  364. .
  365. .SH "QUANTIFIERS"
  366. .rs
  367. .sp
  368. ? 0 or 1, greedy
  369. ?+ 0 or 1, possessive
  370. ?? 0 or 1, lazy
  371. * 0 or more, greedy
  372. *+ 0 or more, possessive
  373. *? 0 or more, lazy
  374. + 1 or more, greedy
  375. ++ 1 or more, possessive
  376. +? 1 or more, lazy
  377. {n} exactly n
  378. {n,m} at least n, no more than m, greedy
  379. {n,m}+ at least n, no more than m, possessive
  380. {n,m}? at least n, no more than m, lazy
  381. {n,} n or more, greedy
  382. {n,}+ n or more, possessive
  383. {n,}? n or more, lazy
  384. .
  385. .
  386. .SH "ANCHORS AND SIMPLE ASSERTIONS"
  387. .rs
  388. .sp
  389. \eb word boundary
  390. \eB not a word boundary
  391. ^ start of subject
  392. also after an internal newline in multiline mode
  393. (after any newline if PCRE2_ALT_CIRCUMFLEX is set)
  394. \eA start of subject
  395. $ end of subject
  396. also before newline at end of subject
  397. also before internal newline in multiline mode
  398. \eZ end of subject
  399. also before newline at end of subject
  400. \ez end of subject
  401. \eG first matching position in subject
  402. .
  403. .
  404. .SH "REPORTED MATCH POINT SETTING"
  405. .rs
  406. .sp
  407. \eK set reported start of match
  408. .sp
  409. From release 10.38 \eK is not permitted by default in lookaround assertions,
  410. for compatibility with Perl. However, if the PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK
  411. option is set, the previous behaviour is re-enabled. When this option is set,
  412. \eK is honoured in positive assertions, but ignored in negative ones.
  413. .
  414. .
  415. .SH "ALTERNATION"
  416. .rs
  417. .sp
  418. expr|expr|expr...
  419. .
  420. .
  421. .SH "CAPTURING"
  422. .rs
  423. .sp
  424. (...) capture group
  425. (?<name>...) named capture group (Perl)
  426. (?'name'...) named capture group (Perl)
  427. (?P<name>...) named capture group (Python)
  428. (?:...) non-capture group
  429. (?|...) non-capture group; reset group numbers for
  430. capture groups in each alternative
  431. .sp
  432. In non-UTF modes, names may contain underscores and ASCII letters and digits;
  433. in UTF modes, any Unicode letters and Unicode decimal digits are permitted. In
  434. both cases, a name must not start with a digit.
  435. .
  436. .
  437. .SH "ATOMIC GROUPS"
  438. .rs
  439. .sp
  440. (?>...) atomic non-capture group
  441. (*atomic:...) atomic non-capture group
  442. .
  443. .
  444. .SH "COMMENT"
  445. .rs
  446. .sp
  447. (?#....) comment (not nestable)
  448. .
  449. .
  450. .SH "OPTION SETTING"
  451. .rs
  452. Changes of these options within a group are automatically cancelled at the end
  453. of the group.
  454. .sp
  455. (?i) caseless
  456. (?J) allow duplicate named groups
  457. (?m) multiline
  458. (?n) no auto capture
  459. (?s) single line (dotall)
  460. (?U) default ungreedy (lazy)
  461. (?x) extended: ignore white space except in classes
  462. (?xx) as (?x) but also ignore space and tab in classes
  463. (?-...) unset option(s)
  464. (?^) unset imnsx options
  465. .sp
  466. Unsetting x or xx unsets both. Several options may be set at once, and a
  467. mixture of setting and unsetting such as (?i-x) is allowed, but there may be
  468. only one hyphen. Setting (but no unsetting) is allowed after (?^ for example
  469. (?^in). An option setting may appear at the start of a non-capture group, for
  470. example (?i:...).
  471. .P
  472. The following are recognized only at the very start of a pattern or after one
  473. of the newline or \eR options with similar syntax. More than one of them may
  474. appear. For the first three, d is a decimal number.
  475. .sp
  476. (*LIMIT_DEPTH=d) set the backtracking limit to d
  477. (*LIMIT_HEAP=d) set the heap size limit to d * 1024 bytes
  478. (*LIMIT_MATCH=d) set the match limit to d
  479. (*NOTEMPTY) set PCRE2_NOTEMPTY when matching
  480. (*NOTEMPTY_ATSTART) set PCRE2_NOTEMPTY_ATSTART when matching
  481. (*NO_AUTO_POSSESS) no auto-possessification (PCRE2_NO_AUTO_POSSESS)
  482. (*NO_DOTSTAR_ANCHOR) no .* anchoring (PCRE2_NO_DOTSTAR_ANCHOR)
  483. (*NO_JIT) disable JIT optimization
  484. (*NO_START_OPT) no start-match optimization (PCRE2_NO_START_OPTIMIZE)
  485. (*UTF) set appropriate UTF mode for the library in use
  486. (*UCP) set PCRE2_UCP (use Unicode properties for \ed etc)
  487. .sp
  488. Note that LIMIT_DEPTH, LIMIT_HEAP, and LIMIT_MATCH can only reduce the value of
  489. the limits set by the caller of \fBpcre2_match()\fP or \fBpcre2_dfa_match()\fP,
  490. not increase them. LIMIT_RECURSION is an obsolete synonym for LIMIT_DEPTH. The
  491. application can lock out the use of (*UTF) and (*UCP) by setting the
  492. PCRE2_NEVER_UTF or PCRE2_NEVER_UCP options, respectively, at compile time.
  493. .
  494. .
  495. .SH "NEWLINE CONVENTION"
  496. .rs
  497. .sp
  498. These are recognized only at the very start of the pattern or after option
  499. settings with a similar syntax.
  500. .sp
  501. (*CR) carriage return only
  502. (*LF) linefeed only
  503. (*CRLF) carriage return followed by linefeed
  504. (*ANYCRLF) all three of the above
  505. (*ANY) any Unicode newline sequence
  506. (*NUL) the NUL character (binary zero)
  507. .
  508. .
  509. .SH "WHAT \eR MATCHES"
  510. .rs
  511. .sp
  512. These are recognized only at the very start of the pattern or after option
  513. setting with a similar syntax.
  514. .sp
  515. (*BSR_ANYCRLF) CR, LF, or CRLF
  516. (*BSR_UNICODE) any Unicode newline sequence
  517. .
  518. .
  519. .SH "LOOKAHEAD AND LOOKBEHIND ASSERTIONS"
  520. .rs
  521. .sp
  522. (?=...) )
  523. (*pla:...) ) positive lookahead
  524. (*positive_lookahead:...) )
  525. .sp
  526. (?!...) )
  527. (*nla:...) ) negative lookahead
  528. (*negative_lookahead:...) )
  529. .sp
  530. (?<=...) )
  531. (*plb:...) ) positive lookbehind
  532. (*positive_lookbehind:...) )
  533. .sp
  534. (?<!...) )
  535. (*nlb:...) ) negative lookbehind
  536. (*negative_lookbehind:...) )
  537. .sp
  538. Each top-level branch of a lookbehind must be of a fixed length.
  539. .
  540. .
  541. .SH "NON-ATOMIC LOOKAROUND ASSERTIONS"
  542. .rs
  543. .sp
  544. These assertions are specific to PCRE2 and are not Perl-compatible.
  545. .sp
  546. (?*...) )
  547. (*napla:...) ) synonyms
  548. (*non_atomic_positive_lookahead:...) )
  549. .sp
  550. (?<*...) )
  551. (*naplb:...) ) synonyms
  552. (*non_atomic_positive_lookbehind:...) )
  553. .
  554. .
  555. .SH "SCRIPT RUNS"
  556. .rs
  557. .sp
  558. (*script_run:...) ) script run, can be backtracked into
  559. (*sr:...) )
  560. .sp
  561. (*atomic_script_run:...) ) atomic script run
  562. (*asr:...) )
  563. .
  564. .
  565. .SH "BACKREFERENCES"
  566. .rs
  567. .sp
  568. \en reference by number (can be ambiguous)
  569. \egn reference by number
  570. \eg{n} reference by number
  571. \eg+n relative reference by number (PCRE2 extension)
  572. \eg-n relative reference by number
  573. \eg{+n} relative reference by number (PCRE2 extension)
  574. \eg{-n} relative reference by number
  575. \ek<name> reference by name (Perl)
  576. \ek'name' reference by name (Perl)
  577. \eg{name} reference by name (Perl)
  578. \ek{name} reference by name (.NET)
  579. (?P=name) reference by name (Python)
  580. .
  581. .
  582. .SH "SUBROUTINE REFERENCES (POSSIBLY RECURSIVE)"
  583. .rs
  584. .sp
  585. (?R) recurse whole pattern
  586. (?n) call subroutine by absolute number
  587. (?+n) call subroutine by relative number
  588. (?-n) call subroutine by relative number
  589. (?&name) call subroutine by name (Perl)
  590. (?P>name) call subroutine by name (Python)
  591. \eg<name> call subroutine by name (Oniguruma)
  592. \eg'name' call subroutine by name (Oniguruma)
  593. \eg<n> call subroutine by absolute number (Oniguruma)
  594. \eg'n' call subroutine by absolute number (Oniguruma)
  595. \eg<+n> call subroutine by relative number (PCRE2 extension)
  596. \eg'+n' call subroutine by relative number (PCRE2 extension)
  597. \eg<-n> call subroutine by relative number (PCRE2 extension)
  598. \eg'-n' call subroutine by relative number (PCRE2 extension)
  599. .
  600. .
  601. .SH "CONDITIONAL PATTERNS"
  602. .rs
  603. .sp
  604. (?(condition)yes-pattern)
  605. (?(condition)yes-pattern|no-pattern)
  606. .sp
  607. (?(n) absolute reference condition
  608. (?(+n) relative reference condition
  609. (?(-n) relative reference condition
  610. (?(<name>) named reference condition (Perl)
  611. (?('name') named reference condition (Perl)
  612. (?(name) named reference condition (PCRE2, deprecated)
  613. (?(R) overall recursion condition
  614. (?(Rn) specific numbered group recursion condition
  615. (?(R&name) specific named group recursion condition
  616. (?(DEFINE) define groups for reference
  617. (?(VERSION[>]=n.m) test PCRE2 version
  618. (?(assert) assertion condition
  619. .sp
  620. Note the ambiguity of (?(R) and (?(Rn) which might be named reference
  621. conditions or recursion tests. Such a condition is interpreted as a reference
  622. condition if the relevant named group exists.
  623. .
  624. .
  625. .SH "BACKTRACKING CONTROL"
  626. .rs
  627. .sp
  628. All backtracking control verbs may be in the form (*VERB:NAME). For (*MARK) the
  629. name is mandatory, for the others it is optional. (*SKIP) changes its behaviour
  630. if :NAME is present. The others just set a name for passing back to the caller,
  631. but this is not a name that (*SKIP) can see. The following act immediately they
  632. are reached:
  633. .sp
  634. (*ACCEPT) force successful match
  635. (*FAIL) force backtrack; synonym (*F)
  636. (*MARK:NAME) set name to be passed back; synonym (*:NAME)
  637. .sp
  638. The following act only when a subsequent match failure causes a backtrack to
  639. reach them. They all force a match failure, but they differ in what happens
  640. afterwards. Those that advance the start-of-match point do so only if the
  641. pattern is not anchored.
  642. .sp
  643. (*COMMIT) overall failure, no advance of starting point
  644. (*PRUNE) advance to next starting character
  645. (*SKIP) advance to current matching position
  646. (*SKIP:NAME) advance to position corresponding to an earlier
  647. (*MARK:NAME); if not found, the (*SKIP) is ignored
  648. (*THEN) local failure, backtrack to next alternation
  649. .sp
  650. The effect of one of these verbs in a group called as a subroutine is confined
  651. to the subroutine call.
  652. .
  653. .
  654. .SH "CALLOUTS"
  655. .rs
  656. .sp
  657. (?C) callout (assumed number 0)
  658. (?Cn) callout with numerical data n
  659. (?C"text") callout with string data
  660. .sp
  661. The allowed string delimiters are ` ' " ^ % # $ (which are the same for the
  662. start and the end), and the starting delimiter { matched with the ending
  663. delimiter }. To encode the ending delimiter within the string, double it.
  664. .
  665. .
  666. .SH "SEE ALSO"
  667. .rs
  668. .sp
  669. \fBpcre2pattern\fP(3), \fBpcre2api\fP(3), \fBpcre2callout\fP(3),
  670. \fBpcre2matching\fP(3), \fBpcre2\fP(3).
  671. .
  672. .
  673. .SH AUTHOR
  674. .rs
  675. .sp
  676. .nf
  677. Philip Hazel
  678. Retired from University Computing Service
  679. Cambridge, England.
  680. .fi
  681. .
  682. .
  683. .SH REVISION
  684. .rs
  685. .sp
  686. .nf
  687. Last updated: 30 August 2021
  688. Copyright (c) 1997-2021 University of Cambridge.
  689. .fi