심층 패킷 분석에서 정규 표현식 매칭 방법 및 그 장치가 개시된다. 본 발명의 일 실시예에 따른 정규 표현식 매칭 방법은 정규 표현식 패턴을 수신하는 단계; 상기 수신된 정규 표현식 패턴을 미리 설정된 오토마타로 변환하는 단계; 상기 변환된 오토마타를 미리 정의된 템플릿들의 조합으로 변환하는 단계; 및 상기 변환된 템플릿들의 조합을 재구성 가능한 하드웨어 레벨의 셀들로 실시간으로 구현하는 단계를 포함하며, 상기 오토마타로 변환하는 단계는 상기 수신된 정규 표현식 패턴을 비결정적 유한 오토마타(Non-deterministic Finite Automata)로 변환할 수 있다.