반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 |
Tags
- c#
- GIT
- Google Spreadsheet
- Java
- django
- Google Excel
- PostgreSQL
- numpy
- Github
- Apache
- 파이썬
- Excel
- list
- Mac
- Python
- matplotlib
- string
- PANDAS
- SQL
- hive
- dataframe
- gas
- math
- array
- Kotlin
- google apps script
- PySpark
- Redshift
- Tkinter
Archives
- Today
- Total
목록SEPARATOR (1)
달나라 노트
Google Apps Script : split (separator 기준으로 문자 나누기, separate string to array, regular expression)
split() method는 어떤 string(문자)에 적용하여 해당 문자를 특정 텍스트를 기준으로 나눠 array 로 만들어줍니다. Syntax string.split(separator) string에 split() method를 적용하면 됩니다. - separator 이것은 어떤 문자를 기준으로 텍스트를 나눌지를 주어주는 부분입니다. 특정 문자도 가능하며 regular expression을 이용하면 다수의 separator를 전달할 수 있습니다. function myFunction() { var test_string = '2022-12-25'; var list_string = test_string.split('-'); Logger.log(list_string); } -- Result [2022, 12..
Google Apps Script
2022. 11. 21. 22:36