Hi,
My code actually works. I ran into a small syntax error. I resolved it. I can't figure out how to delete the post so I guess I will let my question stay on this forum.
I am trying to understand how to use
Pattern Matcher in
Java. Please see my code below:
I expect the following outputs when I call getOutput function like so:
-- For Input: "abc_userid_name", expected output: "abc@userid@name"
-- For Input: "def_userid_name", expected output: "def@userid@name"
But, when I pass abc_userid_name, the above code throws an error i.e. Invalid
doc name: abc_userid_name
Please help me fix this.
Thanks,
Sony