#Copying part of an answer is a matter of good taste
Copying part of an answer is a matter of good taste
Consider a previous challenge where users had to convert text to camel case. Nearly all of the solutions had a regex, and most of the answers used identical or similar regexes.
While regex can certainly be golfed (and was in in the previous example), the regex portion of the answer was small enough that we were OK if it got duplicated across answers.
So, in response to your question:
Is input processing a core part of the question? If so, then don't copy. If not, then you should be fine.
What is considered "core" can be different between people, so if you are unsure, ask.