W
W
WTFAYD2016-07-29 10:56:04
Java
WTFAYD, 2016-07-29 10:56:04

How to translate a sentence from a textbook?

Hello! In Thinking in Java, in the chapter on regular expressions, I came across this sentence: A useful regular expression tool that's built into String is split( ), which means, "Split this string around matches of the given regular expression."
Translated as (not verbatim): A useful regular expression tool built into String is split(), which means "Split the string according to the given regular expression."
Please tell me, did I translate the phrase in quotation marks correctly? How to literally translate? Matches here verb or noun?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
MiiNiPaa, 2016-07-29
@WTFAYD

Please tell me, did I translate the phrase in quotation marks correctly?
You translated vaguely and lost the meaning: what does "accordingly" mean?
Matches here verb or noun?
Noun
How to literally translate?
"Split this string by matches of this regular expression"
Anything that matches this regular expression will be a delimiter
String("123|45.6,789").split("[|,.]");will return strings 123, 45, 6 and 789

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question