Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/bitfield/script
/ ExamplePipe_Match
Function
ExamplePipe_Match
script_test.go:2481–2485 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
2479
}
2480
2481
func
ExamplePipe_Match() {
2482
script.Echo(
"a\nb\nc\n"
).Match(
"b"
).Stdout()
2483
// Output:
2484
// b
2485
}
2486
2487
func
ExamplePipe_MatchRegexp() {
2488
re := regexp.MustCompile(
"w.*d"
)
Callers
nothing calls this directly
Calls
3
Echo
Function · 0.92
Stdout
Method · 0.80
Match
Method · 0.80
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…