Hoogle Search

Within LTS Haskell 24.32 (ghc-9.10.3)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. exec_notempty :: PCREExecOption

    pcre-light Text.Regex.PCRE.Light.Base

    PCRE_NOTEMPTY An empty string is not considered to be a valid match if this option is set. If there are alternatives in the pattern, they are tried. If all the alternatives match the empty string, the entire match fails. For example, if the pattern

    a?b?
    
    is applied to a string not beginning with a or b, it matches the empty string at the start of the subject. With notempty set, this match is not valid, so 'PCRE searches further into the string for occurrences of a or b. Perl has no direct equivalent of notempty, but it does make a special case of a pattern match of the empty string within its split() function, and when using the /g modifier. It is possible to emulate Perl's behaviour after matching a null string by first trying the match again at the same offset with PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the starting offset (see below) and trying an ordinary match again. There is some code that demonstrates how to do this in the pcredemo.c sample program.

  2. exec_noteol :: PCREExecOption

    pcre-light Text.Regex.PCRE.Light.Base

    noteol This option specifies that the end of the subject string is not the end of a line, so the dollar metacharacter should not match it nor (except in multiline mode) a newline immediately before it. Setting this without multiline (at compile time) causes dollar never to match. This option affects only the behaviour of the dollar metacharacter. It does not affect \Z or \z.

  3. exec_notempty :: PCREExecOption

    pcre-light Text.Regex.PCRE.Light.Char8

    PCRE_NOTEMPTY An empty string is not considered to be a valid match if this option is set. If there are alternatives in the pattern, they are tried. If all the alternatives match the empty string, the entire match fails. For example, if the pattern

    a?b?
    
    is applied to a string not beginning with a or b, it matches the empty string at the start of the subject. With notempty set, this match is not valid, so 'PCRE searches further into the string for occurrences of a or b. Perl has no direct equivalent of notempty, but it does make a special case of a pattern match of the empty string within its split() function, and when using the /g modifier. It is possible to emulate Perl's behaviour after matching a null string by first trying the match again at the same offset with PCRE_NOTEMPTY and PCRE_ANCHORED, and then if that fails by advancing the starting offset (see below) and trying an ordinary match again. There is some code that demonstrates how to do this in the pcredemo.c sample program.

  4. exec_noteol :: PCREExecOption

    pcre-light Text.Regex.PCRE.Light.Char8

    noteol This option specifies that the end of the subject string is not the end of a line, so the dollar metacharacter should not match it nor (except in multiline mode) a newline immediately before it. Setting this without multiline (at compile time) causes dollar never to match. This option affects only the behaviour of the dollar metacharacter. It does not affect \Z or \z.

  5. execNotEOL :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE

    No documentation available.

  6. execNotEmpty :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE

    No documentation available.

  7. execNotEOL :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE.ByteString

    No documentation available.

  8. execNotEmpty :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE.ByteString

    No documentation available.

  9. execNotEOL :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE.ByteString.Lazy

    No documentation available.

  10. execNotEmpty :: ExecOption

    regex-pcre-builtin Text.Regex.PCRE.ByteString.Lazy

    No documentation available.

Page 94 of many | Previous | Next