Skip to content

Commit caed236

Browse files
committed
Fix docstring already broken that I added an example to
1 parent 7836164 commit caed236

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

python/datafusion/functions.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1036,10 +1036,13 @@ def regexp_instr(
10361036
) -> Expr:
10371037
r"""Returns the position of a regular expression match in a string.
10381038
1039-
Searches ``values`` for the ``n``-th occurrence of ``regex``, starting at position
1040-
``start`` (the first position is 1). Returns the starting or ending position based
1041-
on ``end_position``. Use ``flags`` to control regex behavior and ``sub_expr`` to
1042-
return the position of a specific capture group instead of the entire match.
1039+
Args:
1040+
values: Data to search for the regular expression match.
1041+
regex: Regular expression to search for.
1042+
start: Optional position to start the search (the first position is 1).
1043+
n: Optional occurrence of the match to find (the first occurrence is 1).
1044+
flags: Optional regular expression flags to control regex behavior.
1045+
sub_expr: Optionally capture group position instead of the entire match.
10431046
10441047
Examples:
10451048
---------

0 commit comments

Comments
 (0)