How to remove RegexMatch() in output

Chintu_sharma
Sun, 23 Oct 2022 18:03:35 +0000
General Usage

filefull="main.cpp"
extension_pattern=r"[^.]+$"
println(match(extension_pattern,filefull))
# answer is RegexMatch("cpp")
#but i need only output word "cpp"

2 posts - 2 participants