public:computer:vim_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
public:computer:vim_cheat_sheet [2022/12/28 17:14] – [Examples] alexpublic:computer:vim_cheat_sheet [2023/01/01 01:06] (current) – [Examples] alex
Line 920: Line 920:
   * '':%s/^(\d+.)/\n\1/g'': 라인 첫번째에 ''숫자(1자이상).''으로 된 항목 앞에 개행문자 추가 (문서전체적용)   * '':%s/^(\d+.)/\n\1/g'': 라인 첫번째에 ''숫자(1자이상).''으로 된 항목 앞에 개행문자 추가 (문서전체적용)
   * '':%s/^(\s+)*/\1*/g'' : 라인 앞에 ''* '' 추가 (문서전체적용)   * '':%s/^(\s+)*/\1*/g'' : 라인 앞에 ''* '' 추가 (문서전체적용)
-  * ":%s/^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))\$|^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)\$|^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])\$/g: date validation <sxh regex>+  * '':%s/^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))\$|^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)\$|^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])\$/g'' : date validation <sxh regex>
 /^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))$| /^(?:(?:1[6-9]|[2-9]\d)?\d{2})(?:(?:(\/|-|\.)(?:0?[13578]|1[02])\1(?:31))|(?:(\/|-|\.)(?:0?[13-9]|1[0-2])\2(?:29|30)))$|
 ^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)$| ^(?:(?:(?:1[6-9]|[2-9]\d)?(?:0[48]|[2468][048]|[13579][26])|(?:(?:16|[2468][048]|[3579][26])00)))(\/|-|\.)0?2\3(?:29)$|
 ^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])$/gm</sxh> ^(?:(?:1[6-9]|[2-9]\d)?\d{2})(\/|-|\.)(?:(?:0?[1-9])|(?:1[0-2]))\4(?:0?[1-9]|1\d|2[0-8])$/gm</sxh>
 +  * '':%s/^\d{4}(\-|\/)(0?[1-9]|1[012])(\-|\/)(0[1-9]|[12][0-9]|3[01]|[1-9])'' : 날짜형식  ''yyyy-mm-dd'',  ''yyyy/mm/dd'', ''yyyy/m/d'', ''yyyy-m-d''.
 +
 +  * '':%s/^\d{4}.*$(?:\n\s{2}.*$)+/\0/g'' PTA의 Transaction 단위로. 그룹 지정 안함.
  
 ===== References ===== ===== References =====
  • public/computer/vim_cheat_sheet.txt
  • Last modified: 2023/01/01 01:06
  • by alex