Module a

Module a 

Expand description

ยงABC 344 A - Spoiler

refs: https://atcoder.jp/contests/abc344/tasks/abc344_a

use proconio::input;
use regex::Regex;

fn main() {
    input! {
        s: String
    }

    let reg = Regex::new(r"\|.*\|").expect("Fixed REGEXP");
    println!("{}", reg.replace(s.as_str(), ""));
}