EXPAND ALL
- Home
- About Pixie
- Installing Pixie
- Using Pixie
- Tutorials
- Reference
Returns the index of the first occurrence of the substring in the given string. If no match is found, returns -1.
The index of the first occurence of the substring. -1 if no match is found.
Variable | Type | Description |
---|---|---|
arg1 | STRING | The string to search through. |
arg2 | STRING | The substring to find. |
df.svc_name = "pixie-labs"df.found = px.find(df.svc_name, '-labs') # 5