Learn R Programming

rebus (version 0.0-4)

lookahead: Lookaround

Description

Zero length matching.

Usage

lookahead(x)

negative_lookahead(x)

lookbehind(x)

negative_lookbehind(x)

Arguments

x
A character vector.

Value

  • A character vector representing part or all of a regular expression.

References

http://www.regular-expressions.info/lookaround.html

Examples

Run this code
x <- "foo"
lookahead(x)
negative_lookahead(x)
lookbehind(x)
negative_lookbehind(x)

Run the code above in your browser using DataLab