If I have a string "Sc_bookstore.PKG_book.SP_Harrypotter", for example.
How would I separate the schema, package and StoredProc? i.e, I want to get he following output:
Sc_bookstore
PKG_book
SP_Harrypotter
I am going to be using this regex on multiple StoredProc calls, and all of them follow the standard of “Sc_” “PKG_” “SP_”
Thanks in advance!
If you really want/need Regex, something in the lines of:
Would allow you to capture the groups values
For input
Sc_bookstore.PKG_book.SP_Harrypotter:But, in your case, just splitting the String by
.would suit your needs very well