Skip to content

Commit d605ada

Browse files
authored
Update backreferences in string functions (#148)
1 parent b67c4b1 commit d605ada

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

apl/scalar-functions/string-functions.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -721,10 +721,10 @@ Backreferences match the same text as previously matched by a capturing group. W
721721

722722
```kusto
723723
['github-issues-event']
724-
| project backreferences = replace_regex(@'observability=(\d+)', 'axiom=$1', creator)
724+
| project backreferences = replace_regex(@'observability=(.+)', 'axiom=$1', creator)
725725
```
726726

727-
[Run in Playground](https://play.axiom.co/axiom-play-qf1k/explorer?initForm=%7B%22apl%22%3A%22%5B'github-issues-event'%5D%5Cn%7C%20project%20backreferences%20%3D%20replace_regex%28%40'observability%3D%28%5Cd%2B%29'%2C%20'axiom%3D%241'%2C%20creator%29%22%7D)
727+
[Run in Playground](https://play.axiom.co/axiom-play-qf1k/explorer?initForm=%7B%22apl%22%3A%22%5B'github-issues-event'%5D%20%7C%20project%20backreferences%20%3D%20replace_regex(%40'observability%3D(.%2B)'%2C%20'axiom%3D%241'%2C%20creator)%22%7D)
728728

729729
## replace_string()
730730

0 commit comments

Comments
 (0)