Sample code for 30+ languages & platforms
Rust

StringBuilder GetAfterBetween

Demonstrates the GetAfterBetween method.

Chilkat Rust Downloads

Rust
let sb = chilkat::StringBuilder::new();
let _ = sb.append("<abc><person><name>Joe</name></person><company><name>Chilkat Software</name></company></abc>");

// The GetAfterBetween method gets the substring between two arbitrary marker strings, and doesn't
// start searching until the searchAfter string is passed.

// For example, to get the company name in the string above...
let search_after = "<company>".to_string();
let company_name = sb.get_after_between(&search_after, "<name>", "</name>").unwrap_or_default();
println!("Company Name = {}", company_name);