(str)
string literals
clojure
(str val?)Where:
- val: string value to match *
Behavior
- Matches string literals regardless of quote style.
Examples
Find hardcoded API endpoints before moving them to configuration.
clojure
(str /https?:\/\//)Selects in lines { 1, 2 } but not in { 3 }:
python
API_URL = "https://api.example.com"
LOCAL_URL = "http://localhost:8000"
PATH = "/users"Locate print statements with debug prefixes for cleanup.
clojure
(call (id "print") (arg 1 (str /^DEBUG:/)))Selects in lines { 1 } but not in { 2, 3 }:
python
print("DEBUG: loaded user", user)
print("INFO: started server")
log("DEBUG: not a print")Find docstrings that mention deprecated behavior.
clojure
(str /deprecated/i)Selects in lines { 2 } but not in { }:
python
def old_api():
"""Deprecated: use new_api instead"""
passArguments
val
• Identifier • String • Pattern
Does NOT support: Composition — Free-form Selection — Refinement — Replacement