Registry / utility / sedregex

sedregex

JSON →
library0.2.5rscratesunverified

Sed-like regex library for performing sed-style substitutions on strings.

# Cargo.toml [dependencies] sedregex = "0.2.5"
INSTALL
IMPORT
SIG · SEDREGEX
S
sedregex
utilityrustv0.2.5
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

replace
use sedregex::replace;

Perform a sed substitution on a string.

use sedregex::replace; let result = replace("hello world", "s/world/rust/").unwrap(); println!("Result: {}", result);
Debug
Known issues
gotchaThe regex syntax is sed-like, not PCRE; some patterns may differ.
fix
Refer to sed documentation for supported patterns.
affects: >=0.1.0
Upgrade
Version history
0.2.5latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
sedregex — cargo add sedregex · libregistry