What does regular expression \\s*,\\s* do?

That regex "\\s*,\\s*" means:

  • \s* any number of whitespace characters
  • a comma
  • \s* any number of whitespace characters

which will split on commas and consume any spaces either side

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)