Skip to content

Instantly share code, notes, and snippets.

@egalink
Created April 6, 2020 19:21
Show Gist options
  • Select an option

  • Save egalink/fa890f553b7fd16e5ce9e9d20cedfa5a to your computer and use it in GitHub Desktop.

Select an option

Save egalink/fa890f553b7fd16e5ce9e9d20cedfa5a to your computer and use it in GitHub Desktop.
/**
* Obtiene los valores de un string que proceden después de dos puntos:
*
* @return (2) ["file", "csv,xls,xlsx"]
*/
'file:csv,xls,xlsx'.match(/(?:[^:*]+)/gi)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment