SSL Certificate Installation :: Tomcat Web Server

SSL Certificate Installation in Tomcat

Installing The Certificates to the Keystore

  1. Download your Certificate files from your DigiCert Web-PKI Customer Account to the directory where your keystore (keystore.key) was saved during the CSR creation process. The certificate must be installed to this exact keystore. If you try to install it to a different keystore it will not work.

    The three certificates you downloaded must be installed to your keystore in the correct order for your DigiCert certificate to be trusted. If the certificates are not installed in the correct order, then the certificate will not authenticate properly. Use keytool to install all three, as follows:

  2. Install the Root Certificate file:

    Each time you install a certificate to your keystore you will be prompted for the keystore password, which you chose when generating your CSR.

    Type the following command to install the Root certificate file:

    keytool -import -trustcacerts -alias root -file TrustedRoot.crt -keystore keystore.key

    ** Note: Choose 'Yes' if you get prompted with a message that says "Certificate already exists in system-wide CA keystore under alias <entrustsslca> Do you still want to add it to your own keystore? [no]:"

    You will get a confirmation stating that the "Certificate was added to keystore"

  3. Install the Intermediate Certificate file:

    Type the following command to install the Intermediate certificate file:

    keytool -import -trustcacerts -alias digicert -file DigiCertCA.crt -keystore keystore.key

    You will get a confirmation stating that the "Certificate was added to keystore".

  4. Install the Primary Certificate file:

    Type the following command to install the Primary certificate file:

    keytool -import -trustcacerts -alias tomcat -file your_domain_name.crt -keystore keystore.key

    This time you should get a slightly different confirmation stating that the "Certificate reply was installed in keystore"

    If it asks if you want to trust the certificate. Choose y or yes.

    Your Certificates are now installed to your keystore file (keystore.key) and you just need to configure your server to use the keystore file.

Configuring your SSL Connector

Tomcat will first need an SSL Connector configured before it can accept secure connections.

**Note: By default Tomcat will look for your Keystore with the file name .keystore in the home directory with the default password changeit. The home directory is generally /home/user_name/ on Unix and Linux systems, and C:\Documents and Settings\user_name\ on Microsoft Windows systems. -- It is possible to change the filename, password, and even location that Tomcat looks for the keystore. If you need to do this, pay special attention to #8 of Option 1 or #5 of Option 2 below.

Option 1 -- Add an SSL Connector using admintool:

  1. Start Tomcat.
  2. Enter 'http://localhost:8080/admin' in a local browser to start admintool.
  3. Type a username and password with administrator rights.
  4. On the left select service (Java Web Services Developer Pack).
  5. Select Create New Connector from the drop-down list on the right.
  6. Choose HTTPS in the Type field.
  7. In the Port field, enter 443. This defines the TCP/IP port number on which Tomcat will listen for secure connections.
  8. Enter the Keystore Name and Keystore Password if your keystore is named something other than .keystore, if .keystore is located in a directory other than the home directory of the machine on which Tomcat is running, or if the password is something other than the default value of changeit. If you have used the default values, you can leave these fields blank.
  9. Select Save to save the new Connector.
  10. Select Commit Changes to save the new Connector information to the server.xml file so that it is available the next time Tomcat is started.

Option 2 -- Configure the SSL Connector in server.xml:

  1. Copy your keystore file (your_domain.key) to the home directory (see the **Note above).
  2. Open the file Home_Directory/conf/server.xml in a text editor.
  3. Uncomment the SSL Connector Configuration.
  4. Make sure that the Connector Port is 443.
  5. If your keystore filename is something other than the default file name (.keystore) and/or your keystore password is something other than default (changeit) then you will need to specify the correct keystore filename and/or password in your connector configuration -- ex. keypass="newpassword"

    When you are done your connector should look something like this:

    <Connector port="443" maxHttpHeaderSize="8192" maxThreads="150" minSpareThreads="25" maxSpareThreads="75" enableLookups="false" disableUploadTimeout="true" acceptCount="100" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS" keystoreFile="/home/user_name/keystore.key" keypass="your_keystore_password" />

  6. Save the changes to server.xml.
  7. Restart Tomcat.

Installing your SSL Certificates in Tomcat Web Server


신고
by Hazard 2009.01.08 08:52

JDK 1.4 한글 도움말(javastudy) : http://www.javastudy.co.kr/api/api1.4/

 

J2EE 한글 도움말 : http://xrath.com/devdoc/j2ee-1.3.1/ko/api/index.html

 

servlet api :

http://jakarta.apache.org/tomcat/tomcat-4.1-doc/servletapi/index.html - 2.3

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/servletapi/index.html - 2.4

jsp2.0 api :

http://jakarta.apache.org/tomcat/tomcat-5.5-doc/jspapi/index.html - 2.0

 

JDK 5.0 한글 도움말 : http://xrath.com/devdoc/jdk1.5/ko/

JDK 1.4 한글 API(forcert) : http://www.forcert.com/programming/api/j2se/1.4.0k/index.html

 

J2EE 1.4 튜토리얼 : http://java.sun.com/j2ee/1.4/docs/tutorial/doc/index.html

JSTL 1.1 : http://java.sun.com/products/jsp/jstl/1.1/docs/tlddocs/index.html

Spring API : http://www.springframework.org/docs/api/index.html

Hibernate API : http://www.hibernate.org/hib_docs/api/

자바 패키지별 예제(영문) : http://sangchin.byus.net/FlashHelp/Almanac.htm

====================================================================

자바 싸이트

--------------------------------------------------------------------

자바스터디 : http://www.javastudy.co.kr/  (강좌 정리)
자바누리 :
http://www.javanuri.com/
자바랜드 : http://www.javaland.co.kr/
소설같은 자바 : http://www.jabook.org/    (책 한권)
자바서비스넷 :
http://www.javaservice.net/ (중고급 정보)
상욱의 개발자side :
http://50001.com/  (소스 등)
종스클럽닷컴:
http://www.jongsclub.com/
JLAB : http://www.jlab.net/
OKJSP : http://www.okjsp.pe.kr/
제이스톰 : www.jstorm.pe.kr/

자바 튜토리알(영어) : http://java.sun.com/docs/books/tutorial/index.html

스윙 컴포넌트 예제(영어) : http://java.sun.com/docs/books/tutorial/uiswing/components/components.html

MS SQL2000 JDBC 드라이버 다운로드 : http://www.microsoft.com/korea/download/server.asp

자카르타 프로젝트 한글화 : http://jakarta.apache-korea.org/

자바지기 : http://wiki.javajigi.net/

자바지기 eclipse 강좌 : http://wiki.javajigi.net/display/IDE/Eclipse

자바지기 struts 강좌 : http://wiki.javajigi.net/display/FRAMEWORK/Home

이클립시안 : http://eclipsians.net/

 

====================================================================

JSP 싸이트

--------------------------------------------------------------------

JSP 스쿨 : http://www.jspschool.com/ (정리 잘됨, 자료실 Good)
OKJSP : http://www.okjsp.pe.kr/ (종류별로 정리잘된 싸이트)

JSP스터디 : http://www.jspstudy.co.kr/ (오른쪽 메뉴중 lecture list 강좌보면 좋다)

AboutJSP : http://aboutjsp.com/ (강좌, , QnA )

자북 (소설같은 JSP) : http://www.jabook.org/ ( 소설같은 JSP 1, 2부 있음)

까오기 : http://www.kkaok.pe.kr/ (여러 유영한 팁들)

더블 아이큐 : http://www.doubleiq.pe.kr/ (정리된 강좌와 QnA  )

 

====================================================================

기타 관련 다운로드 싸이트(JDK, MySQL, 톰캣 등)

====================================================================

JDK 1.4.x     자바 Development Kit               http://java.sun.com

NetBeans 4.1 다운로드 : http://www.netbeans.org/download/4_1/fcs/200505031930/66083d474e5fdfc80a1443fb851bd9d5/netbeans-4_1-windows.exe

--------------------------------------------------------------------

MySQL        MySQL 데이터베이스      http://mysql.com

MySQL 직접 다운로드 아래 링크 참조

3.23.58 : http://downloads.mysql.com/archives/mysql-3.23/mysql-3.23.58-win.zip

 

MySQL Connector/J (JDBC Driver for MySQL)   http://dev.mysql.com/downloads/connector/

직접 다운로드 JDBC 드라이버 ( 3.1.10 ) : http://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-3.1.10.zip/from/http://mysql.holywar.net/

MySQLCC : http://mysql.mirror.anlx.net/Downloads/MySQLCC/

MySQL-Front : http://www.mysqlfront.de/download.html

--------------------------------------------------------------------

톰캣 4.1.31 웹 애플리케이션 서버

http://jakarta.apache.org/tomcat

직접 다운로드 :

http://ftp.apache-kr.org/tomcat/tomcat-4/v4.1.31/bin/jakarta-tomcat-4.1.31.exe

JDK 1.4에 최적화된 버젼 :

http://ftp.apache-kr.org/tomcat/tomcat-4/v4.1.31/bin/jakarta-tomcat-4.1.31-LE-jdk14.exe

 

오라클 9i 링크 : http://www.oracle.com/technology/software/products/oracle9i/index.html

오라클 다운 :

http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk1.zip

http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk2.zip

http://download.oracle.com/otn/nt/oracle9i/9201/92010NT_Disk3.zip

====================================================================

이클립스 eclipse 3.0.2 다운로드 정리

한국의 미러 싸이트 : http://eclipse.areum.biz/downloads/

이클립스 3.0.2 :

http://eclipse.areum.biz/downloads/drops/R-3.0.2-200503110845/eclipse-SDK-3.0.2-win32.zip

언어팩 : http://eclipse.areum.biz/downloads/drops/L-3.0.1_Translations-200409161125/NLpack-eclipse-SDK-3.0.x-win32.zip

톰캣 플러그인 :

http://www.sysdeo.com/sysdeo/content/download/350/4721/file/tomcatPluginV31beta.zip

롬보즈 : http://download.fr2.forge.objectweb.org/lomboz/org.objectweb.lomboz_3.0.1.N20050106.zip

롬보즈 실행을 위한 도구 :

http://download.fr2.forge.objectweb.org/lomboz/emf-sdo-runtime-2.0.0.zip 

(롬보즈를 쓰려면 같이 다운받아서 압축 풀어 쓴다.)

 

롬보즈 사용 예제 모음(영어) :http://www.objectlearn.com/support/docs/index.jsp

 

이클립스 플러그인 : http://www.eclipse-plugins.info/eclipse/index.jsp

 

====================================================================

자카르타 Ant 한글 싸이트 : http://ant.apache-korea.org/

자카르타 Ant 다운로드 : http://ant.apache.org/bindownload.cgi

ant 직접 다운 로드 : http://ftp.apache-kr.org/ant/binaries/apache-ant-1.6.5-bin.zip

 

====================================================================

이클립스 eclipse 3.1.1 다운로드 정리

 

한국의 미러 싸이트 : http://eclipse.areum.biz/downloads/

이클립스 3.1.1 :

http://eclipse.areum.biz/downloads/drops/R-3.1.1-200509290840/download.php?dropFile=eclipse-SDK-3.1.1-win32.zip

언어팩 :

ftp://ftp.jaist.ac.jp/pub/eclipse/eclipse/downloads/drops/L-3.1.1_Language_Packs-200510051300/NLpack1-eclipse-SDK-3.1.1a-win32.zip

톰캣 플러그인 :

http://www.sysdeo.com/eclipse/tomcatPlugin.html

직접 다운 :  

http://www.sysdeo.com/sysdeo/content/download/350/4721/file/tomcatPluginV31beta.zip

롬보즈 플러그인 :

http://forge.objectweb.org/projects/lomboz

http://download.fr2.forge.objectweb.org/lomboz/

lomboz-emf-gef-jem-3.1RC2 : http://download.fr2.forge.objectweb.org/lomboz/lomboz-emf-gef-jem-3.1RC2.zip

 

--------------------------------------------------------------------

WTP all : http://ftp.jaist.ac.jp/pub/eclipse/webtools/downloads/drops/R-0.7-200507290654/wtp-all-in-one-0.7-win32.zip

 

--------------------------------------------------------------------

기타 플러그인 정리

롬보즈3.1RC2 : http://download.fr2.forge.objectweb.org/lomboz/lomboz-3.1RC2.zip

lomboz/lomboz-eclipse-emf-gef-jem-3.1RC2 : http://download.fr2.forge.objectweb.org/lomboz/lomboz-eclipse-emf-gef-jem-3.1RC2.zip

EMF : ftp://ftp.jaist.ac.jp/pub/eclipse/tools/emf/downloads/drops/2.1.1/R200509281310/emf-sdo-xsd-SDK-2.1.1.zip

GEF : ftp://ftp.jaist.ac.jp/pub/eclipse/tools/gef/downloads/drops/R-3.1.1-200509301327/GEF-ALL-3.1.1.zip

VE : ftp://ftp.jaist.ac.jp/pub/eclipse/tools/ve/downloads/drops/R-1.1.0.1-200509071822/VE-SDK-1.1.0.1.zip

UML2 : ftp://ftp.jaist.ac.jp/pub/eclipse/tools/uml2/downloads/drops/1.1.1/R200509282050/uml2-SDK-1.1.1.zip

JEM : ftp://ftp.jaist.ac.jp/pub/eclipse/tools/ve/downloads/drops/R-1.1-200507221721/JEM-SDK-1.1.zip

WTP : ftp://ftp.jaist.ac.jp/pub/eclipse/webtools/downloads/drops/R-0.7-200507290654/wtp-all-in-one-0.7-win32.zip

eclipseUML : http://www.eclipsedownload.com/eclipseUML_freeEdition_2.1.0/eclipseUML_E310_freeEdition_2.1.0.20050927.jar

 

--------------------------------------------------------------------

데이타베이스 관련 이클립스 플러그인

--------------------------------------------------------------------

DBEdit  : http://sourceforge.net/projects/dbedit/

DBEdit Down : http://jaist.dl.sourceforge.net/sourceforge/dbedit/dbedit_1.0.3_1.bin.dist_3.X.zip

 

SQLExplorer : http://sourceforge.net/projects/eclipsesql/

SQLExplorer down : http://keihanna.dl.sourceforge.net/sourceforge/eclipsesql/net.sourceforge.sqlexplorer_2.2.4.zip

 

quantumDB : http://quantum.sourceforge.net/

quantumDB 다운 : http://keihanna.dl.sourceforge.net/sourceforge/quantum/com.quantum.feature_3.0.1.bin.dist.zip

--------------------------------------------------------------------

 

자바스크립트 에디터 :

http://sourceforge.net/projects/jseditor
http://heanet.dl.sourceforge.net/sourceforge/jseditor/net.sf.wdte.js_0.0.9b.zip

CSS 에디터 :

http://www.vasanthdharmaraj.com/Software.aspx?=csseditor

JSEclipse : http://www.interaktonline.com/downloads/eclipse/100/JSEclipse_1.2.1.zip

AnyEdit : http://andrei.gmxhome.de/anyedit/links.html

 

--------------------------------------------------------------------

(J2EE 개발 및 JSP 개발시 유용한 플러그인)

1. 다운로드 주소

롬보즈 다운로드 링크 : http://forge.objectweb.org/projects/lomboz

2. 직접 다운

미국 : http://download.us.forge.objectweb.org/lomboz/lomboz.213.zip

프랑스 : http://download.fr2.forge.objectweb.org/lomboz/lomboz.213.zip

중국 : http://download.zh.forge.objectweb.org/lomboz/lomboz.213.zip

c:\eclipse라는 폴더에 압축을 해제.

 

--------------------------------------------------------------------

(톰캣 개발시 유용한 플러그인)

1. 다운로드 주소

톰캣 플러그인 : http://www.sysdeo.com/eclipse/tomcatPlugin.html

2. 직접 다운

http://www.sysdeo.com/sysdeo/content/download/350/4721/file/tomcatPluginV31beta.zip

tomcatPluginV3.zip 다운 받아서 압축 해제해서

C:\eclipse\plugins 에 복사

 

--------------------------------------------------------------------

(스트럿츠 개발시 유용한 플러그인)

EasyStruts : eclipse 에서 스트럿츠 개발시 사용하는 플러그인.

1. 다운로드 : 주소

http://sourceforge.net/projects/easystruts

2. 직접 다운로드

http://prdownloads.sourceforge.net/easystruts/org.easystruts.eclipse_0.6.4.zip?download

 

--------------------------------------------------------------------

(스트럿츠)

1. 스트럿츠 다운

http://archive.apache.org/dist/struts/

2. 스트럿츠 직접 다운로드

    http://ftp.apache-kr.org/struts/binaries/struts-1.2.7.zip

    http://mirror.apache.or.kr/jakarta/struts/binaries/jakarta-struts-1.1.zip

(ANT 다운 로드)

http://www.apache.org/dist/ant/

 

--------------------------------------------------------------------

(스트럿츠 참고 싸이트)

자바 프레임워크(네이버 스트럿츠 카페) : http://cafe.naver.com/deve.cafe

 

====================================================================

우키의 블로그 : http://www.jaewook.net/

한글패치 : http://lang.playxp.com/

웹마 : http://www.mdiwebma.com/

jwBrowser : http://samba.ssyy.net/

구글 : http://www.google.co.kr

심파일 : http://simfile.chol.com/

이클립스 : http://www.eclipse.org/

ie toy, ad-free : http://loser.miniwini.com/tt/

자료 : http://baechul.com/cgi/technote/main.cgi?board=pds

브피피닷넷 : http://vbpp.net/

자료 소스 : http://semtle.cuk.ac.kr/bbs/list.php?id=pds

웹빌드 : http://www.webbuild.co.kr

넷탑 : http://www.nettop.pe.kr

파워빌더 유저 가이드 : http://www.pbuser.com/main.html

미친감자 : http://mazinga.egloos.com/

EditPlus 자바 컴파일 설정 : http://www.javacafe.or.kr/lecture/cafeLecture/tool/EditPlusSetting/EditPlusSetting.htm

구글 툴바 : http://toolbar.google.com/T3/intl/ko/index_ie.php

 

====================================================================

PDA 싸이트

--------------------------------------------------------------------

투데이스피피시 : http://www.todaysppc.com
PDA 프로그램 모음 싸이트 : http://www.fingertool.com/

포인트피디에이 : http://www.pointpda.com

코리아닷컴 피디에이 : http://pda.korea.com/

정리 잘된 싸이트 : http://www.114pda.com/

무료 PDA 소프트웨어 : http://www.freewareppc.com

클리앙 : http://www.clien.net/

====================================================================

XML 싸이트

--------------------------------------------------------------------

안항준의 XML : http://my.netian.com/~aphise/

XML 스터디 : http://www.xmlstudy.co.kr/

김종민 XML : http://xml.80port.net/

자바지기 : http://www.javajigi.net/

XML Developer Group : http://xml.geonji.co.kr/

Rapsodie's XML Resource : http://user.chollian.net/~rapsodie/main.html

용어사전과 XML : http://trio.co.kr/

HowXML : http://www.howxml.com/

군산대학교 XML 연구실 : http://xmlab.kunsan.ac.kr/

XML 강좌 링크 : http://www.howon.ac.kr/~ktlim/lecture/xml/xml-index.htm

코리아 인터넷 XML 강좌 : http://korea.internet.com/channel/index.asp?cid=193

XML 홈페이지 만들기 강의 자료 : http://muse.inchon.ac.kr/jschae/internet_xml.html

XML 강의 자료 : http://kuic.kyonggi.ac.kr/~ejlee/xml/#course-note

XML 강의 : http://hyejeon.ac.kr/%7Ekrkuki/xmlq_1.html

자바지기 XML 강좌 : http://wiki.javajigi.net/display/XML/Home

====================================================================

기타 싸이트

--------------------------------------------------------------------

소스들 : http://bluebild.byus.net/

구글툴바 : http://toolbar.google.com/intl/ko/index_ie.php

개인 이글루 싸이트(프로그래밍) : http://kwon37xi.egloos.com/

자카르타프로젝트(?) : http://www.jakartaproject.com/

TDD : http://wiki.tdd.or.kr/wiki.py

CSS : http://ilmol.com/wp/css

DB Desiner 4 :  http://www.fabforce.net/

manwal 블로그 : http://blog.etnews.co.kr/html/blog_home.php?bid=manwal

데이타베이스 사랑 넷 : http://database.sarang.net/

Xrath 블로그 : http://xrath.com/blog/index.php?category=Development

루비 : http://forum.rubykr.org/

루비 홈 : http://www.ruby-lang.org/en/

RDE : http://homepage2.nifty.com/sakazuki/rde_e.html

MMF 플레이어 : http://www.playersparadise.net/download/

 

====================================================================

OKJSP 동영상 강좌 : http://www.okjsp.pe.kr/lecture/viewlet/

이클립스 톰캣 디버그 : http://www.okjsp.pe.kr/lecture/viewlet/okjsp2005/10_lomboz_tomcat_debug.html

Xper 위키 : http://xper.org/wiki/xp/

자카르타 한글 번역 : http://jakarta.apache-korea.org/

이클립시안 : http://eclipsians.net/

오라클용 무료 DB (DBA Master 2000) : http://www.dbany.com/

데이타베이스 정보 : http://www.databaser.net/

국현님 싸이트 : http://goodhyun.com/

Jazz Virtual Machine : http://www.jazzvm.net/

 

JavaJiGi 강좌 1. Eclipse 강좌  2. Struts 강좌 3. XML 강좌

 

빌크 블루엣 인터내셔널에서 운영하는 작은 커뮤니티 : http://www.bilc.co.kr/

구글 바로 가입하기 : http://www.bytetest.com/

Korea Oracle Use Group : http://www.koug.net/

larky : http://larky.biz/blog/

mabaji " http://tong.nate.com/mabaji

데이터베이스 벤더간 함수, 문법 비교 :  http://www.crossdb.com/dbknowledgebase/differencestable.html

J2EE Study :  http://www.j2eestudy.co.kr

한국 JBoss 사용자 그룹 : http://www.krjbug.com/

행복한고니 블로그 : http://mygony.com/tt/index.php

주홍넷 : http://www.joohong.net/ (게임기획)

NT FAQ : http://www.ntfaq.co.kr/

 

====================================================================

인터넷 서점

====================================================================

도서가격 비교 (마이마진): http://book.mm.co.kr/

강컴 : http://www.kangcom.com

네이버 책 : http://book.naver.com/

리브로 : http://www.libro.co.kr/books/index.asp?mall_id=1

알라딘 : http://www.aladdin.co.kr/home/wbookmain.aspx

모닝365 : http://www.morning365.com/

반디앤루니스 : http://www.bandibook.com/

yes24 : http://www.yes24.com

교보 : http://www.kyobobook.co.kr/

 

====================================================================

자바스크립트 관련 싸이트

====================================================================

자바스크립트 정리 Good : http://koxo.com/lang/js/

영문 싸이트 : http://www.devguru.com/Technologies/ecmascript/quickref/javascript_index.html

 

 ====================================================================

프로그램 소스 모음 링크

====================================================================

생각하며 배우는 C++ 소스 링크 : http://www.hanbitbook.co.kr/example/1277/

알기쉽게 풀어쓴 웹로직과 EJB 소스 : http://www.hanbitbook.co.kr/exam/1278

신고

'Programming > JAVA' 카테고리의 다른 글

JAVA 관련 사이트  (0) 2009.01.08
by Hazard 2009.01.08 08:33
Maven eclipse plug-in 은 M2Eclipse 이다.
Software Update URL 은
http://m2eclipse.sonatype.org/update/
이다.


-hazard-
신고

'Programming > Spring' 카테고리의 다른 글

하이버네이트 강좌  (0) 2009.03.09
Spring 의 xml 설정을 위한 조언  (1) 2009.02.10
Spring DM 튜토리얼  (0) 2009.01.08
Maven plug-in Setting  (0) 2008.12.11
Eclipse Ganymede 3.4.1 Proxy Setting  (0) 2008.12.11
by Hazard 2008.12.11 14:50
window > preferences > general > network connections
manual proxy configuration

이 설정을 사용하면 help > software updates.. 를 방화벽 내부에서 사용할 수 있다.

-hazard-

신고

'Programming > Spring' 카테고리의 다른 글

하이버네이트 강좌  (0) 2009.03.09
Spring 의 xml 설정을 위한 조언  (1) 2009.02.10
Spring DM 튜토리얼  (0) 2009.01.08
Maven plug-in Setting  (0) 2008.12.11
Eclipse Ganymede 3.4.1 Proxy Setting  (0) 2008.12.11
by Hazard 2008.12.11 14:47
사용자 삽입 이미지

















She...

Eque

-hazard-
신고

'Photo Life > 세식구' 카테고리의 다른 글

남이섬 여행정보  (0) 2009.01.17
싸구려 와인 시리즈 #4 - 만원의 행복  (0) 2009.01.12
싸구려 와인 시리즈 #3 Moscato Spumante  (0) 2009.01.10
싸구려 와인 시리즈 #2 Gracia De Chile 2008  (0) 2009.01.10
eQuE #1  (0) 2007.03.28
Hazard Life  (0) 2007.03.27
by Hazard 2007.03.28 00:06

개발을 할수록 늘어나는것은
절반의 자괴감과
절반의 허영심,

사용자 삽입 이미지
-hazard-

신고

'Photo Life > 세식구' 카테고리의 다른 글

남이섬 여행정보  (0) 2009.01.17
싸구려 와인 시리즈 #4 - 만원의 행복  (0) 2009.01.12
싸구려 와인 시리즈 #3 Moscato Spumante  (0) 2009.01.10
싸구려 와인 시리즈 #2 Gracia De Chile 2008  (0) 2009.01.10
eQuE #1  (0) 2007.03.28
Hazard Life  (0) 2007.03.27
by Hazard 2007.03.27 23:45
Ruby 는 Regular Expression 을 지원한다.
생각보다 편리하다.
단, 직관적임은 언제나 놀라운 편리함을 제공하지만
그에대한 대가로, Syntax의 혼동을 불러일으킨다.
주의할것!

+ -> 1개이상
* -> 0개이상
? -> 0또는 1개
| -> 좌변 혹은 우변
. -> 한개의 글자
^ ->줄의 맨앞
$ ->줄의 맨뒤
\A -> 지정된 문자열의 맨처음
\Z -> 지정된 문자열의 맨뒤(\n 없을때)
\z -> 지정된 문자열의 맨뒤
\b -> word boundary
\B -> nonword boundary


계속...


-hazard-
신고

'Programming > Ruby' 카테고리의 다른 글

Ruby and Regular Expression  (0) 2007.03.22
by Hazard 2007.03.22 23:40
| 1 ··· 4 5 6 7 |

티스토리 툴바