Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docs: Stacks predicates: Added example for contains to use regex #394

Merged
merged 3 commits into from
Aug 23, 2023
Merged
Changes from 1 commit
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
1 change: 1 addition & 0 deletions docs/how-to-guides/how-to-use-chainhooks-with-stacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ Get any transaction emitting given print events predicate

- `contract-identifier` mandatory argument admits:
- string type, fully qualifying the contract to observe. Example: `ST1PQHQKV0RJXZFY1DGX8MNSNYVE3VGZJSRTPGZGM.monkey-sip09`
- Either the `contains` or `matches_regex` argument:
- `contains` argument admits string type, used for matching an event containing the specified string. Example: `vault`
- `matches_regex` argument admits string type that should be valid regex, used for matching an event that regex matches with the specified string. Example: `(?:^|\\W)vault(?:$|\\W)`
LakshmiLavanyaKasturi marked this conversation as resolved.
Show resolved Hide resolved

Expand Down