Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions docs/src/main/sphinx/functions/regexp.rst
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,10 @@ with a few notable exceptions:
Evaluates the regular expression ``pattern`` and determines if it is
contained within ``string``.

This function is similar to the ``LIKE`` operator, except that the
pattern only needs to be contained within ``string``, rather than
needing to match all of ``string``. In other words, this performs a
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You still need to have some of that info

*contains* operation rather than a *match* operation. You can match
the entire string by anchoring the pattern using ``^`` and ``$``::
The ``pattern`` only needs to be contained within
``string``, rather than needing to match all of ``string``. In other words,
this performs a *contains* operation rather than a *match* operation. You can
match the entire string by anchoring the pattern using ``^`` and ``$``::

SELECT regexp_like('1a 2b 14m', '\d+b'); -- true

Expand Down