public:computer:regexp

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:regexp [2022/01/07 17:32] alexpublic:computer:regexp [2023/01/01 00:58] (current) – [선택, 그룹, 역참조] alex
Line 70: Line 70:
  
 ==== 참조 그룹 ==== ==== 참조 그룹 ====
-  * 찾고자 하는 내용을 ()로 감싼 후(참조) $1, $2 혹은 \1, \2와 같이 역참조+  * 찾고자 하는 내용을 ()로 감싼 후(참조) \$1, \$2 혹은 \1, \2와 같이 역참조
  
  
Line 126: Line 126:
  
   * 서브패턴 ex) (the|The|THE), (t|T)h(e|eir)   * 서브패턴 ex) (the|The|THE), (t|T)h(e|eir)
-  * 그룹 참조와 역참조; \1, $1 +  * 그룹 참조와 역참조; \1, \$1 
   * 그룹 이름 지정; ?<one>, ?<two>   * 그룹 이름 지정; ?<one>, ?<two>
-  * 그룹 이름으로 참조; $+{one}, $+{two}+  * 그룹 이름으로 참조; \$+{one}, \$+{two}
  
 ^  그룹 이름 지정 구문  ^^ ^  그룹 이름 지정 구문  ^^
  • public/computer/regexp.1641544371.txt.gz
  • Last modified: 2022/01/07 17:32
  • by alex