반응형


1. 빠른 파일 검색


사이트 : http://www.voidtools.com/

프로그램명 : everything



Everything-1.2.1.371.exe





설치 후 실행 화면



TOOLS -> OPTIONS -> HTTP 탭


사용하는 포트 정보 설정 가능


TOOLS -> Start HTTP Server 를 통해 웹 서비스 가능


즉, 웹을 통해 찾을려는 파일등을 쉽게 검색 가능함





2. 파일 내용 검색


사이트 : http://astrogrep.sourceforge.net/

프로그램명 : Astrogrep



AstroGrep_v4.3.0.zip


: 정규 표현식 (. 표준 마이크로 소프트 닷넷 정규식 사용 - 빠른 참조 ) 
동시 여러 파일 형식 - 
- 재귀 디렉토리 검색 
- 위하고 검색 아래 식을 줄을 선택 "컨텍스트"기능 
- 가장 최근에 사용을 검색 경로에 대한 목록 
다소 다양한 인쇄 옵션 - 
- 당신의 선택의 편집기를 사용하여 파일을 열려면 두 번 클릭 
- 상점 가장 최근에 사용한 파일 이름 및 검색 식 
- 단어 단위 만 
- 구문 highlighing 

- 무료 및 오픈 소스의 무료


MS 계열에 정규식 표현 가능...




Regular Expression Language - Quick Reference

.NET Framework 4.5
85 out of 96 rated this helpful Rate this topic

A regular expression is a pattern that the regular expression engine attempts to match in input text. A pattern consists of one or more character literals, operators, or constructs. For a brief introduction, see .NET Framework Regular Expressions.

Each section in this quick reference lists a particular category of characters, operators, and constructs that you can use to define regular expressions:

The backslash character (\) in a regular expression indicates that the character that follows it either is a special character (as shown in the following table), or should be interpreted literally. For more information, see Character Escapes in Regular Expressions.

Escaped character

Description

Pattern

Matches

\a

Matches a bell character, \u0007.

\a

"\u0007" in "Error!" + '\u0007'

\b

In a character class, matches a backspace, \u0008.

[\b]{3,}

"\b\b\b\b" in "\b\b\b\b"

\t

Matches a tab, \u0009.

(\w+)\t

"item1\t", "item2\t" in "item1\titem2\t"

\r

Matches a carriage return, \u000D. (\r is not equivalent to the newline character, \n.)

\r\n(\w+)

"\r\nThese" in "\r\nThese are\ntwo lines."

\v

Matches a vertical tab, \u000B.

[\v]{2,}

"\v\v\v" in "\v\v\v"

\f

Matches a form feed, \u000C.

[\f]{2,}

"\f\f\f" in "\f\f\f"

\n

Matches a new line, \u000A.

\r\n(\w+)

"\r\nThese" in "\r\nThese are\ntwo lines."

\e

Matches an escape, \u001B.

\e

"\x001B" in "\x001B"

\ nnn

Uses octal representation to specify a character (nnn consists of two or three digits).

\w\040\w

"a b", "c d" in

"a bc d"

\x nn

Uses hexadecimal representation to specify a character (nn consists of exactly two digits).

\w\x20\w

"a b", "c d" in

"a bc d"

\c X

\c x

Matches the ASCII control character that is specified by X or x, where X or x is the letter of the control character.

\cC

"\x0003" in "\x0003" (Ctrl-C)

\u nnnn

Matches a Unicode character by using hexadecimal representation (exactly four digits, as represented by nnnn).

\w\u0020\w

"a b", "c d" in

"a bc d"

\

When followed by a character that is not recognized as an escaped character in this and other tables in this topic, matches that character. For example, \* is the same as \x2A, and \. is the same as \x2E. This allows the regular expression engine to disambiguate language elements (such as * or ?) and character literals (represented by \* or \?).

\d+[\+-x\*]\d+\d+[\+-x\*\d+

"2+2" and "3*9" in "(2+2) * 3*9"

Back to top

A character class matches any one of a set of characters. Character classes include the language elements listed in the following table. For more information, see Character Classes in Regular Expressions.

Character class

Description

Pattern

Matches

[ character_group ]

Matches any single character in character_group. By default, the match is case-sensitive.

[ae]

"a" in "gray"

"a", "e" in "lane"

[^ character_group ]

Negation: Matches any single character that is not in character_group. By default, characters in character_group are case-sensitive.

[^aei]

"r", "g", "n" in "reign"

[ first - last ]

Character range: Matches any single character in the range from first to last.

[A-Z]

"A", "B" in "AB123"

.

Wildcard: Matches any single character except \n.

To match a literal period character (. or \u002E), you must precede it with the escape character (\.).

a.e

"ave" in "nave"

"ate" in "water"

\p{ name }

Matches any single character in the Unicode general category or named block specified by name.

\p{Lu}

\p{IsCyrillic}

"C", "L" in "City Lights"

"Д", "Ж" in "ДЖem"

\P{ name }

Matches any single character that is not in the Unicode general category or named block specified by name.

\P{Lu}

\P{IsCyrillic}

"i", "t", "y" in "City"

"e", "m" in "ДЖem"

\w

Matches any word character.

\w

"I", "D", "A", "1", "3" in "ID A1.3"

\W

Matches any non-word character.

\W

" ", "." in "ID A1.3"

\s

Matches any white-space character.

\w\s

"D " in "ID A1.3"

\S

Matches any non-white-space character.

\s\S

" _" in "int __ctr"

\d

Matches any decimal digit.

\d

"4" in "4 = IV"

\D

Matches any character other than a decimal digit.

\D

" ", "=", " ", "I", "V" in "4 = IV"

Back to top

Anchors, or atomic zero-width assertions, cause a match to succeed or fail depending on the current position in the string, but they do not cause the engine to advance through the string or consume characters. The metacharacters listed in the following table are anchors. For more information, see Anchors in Regular Expressions.

Assertion

Description

Pattern

Matches

^

The match must start at the beginning of the string or line.

^\d{3}

"901" in

"901-333-"

$

The match must occur at the end of the string or before \n at the end of the line or string.

-\d{3}$

"-333" in

"-901-333"

\A

The match must occur at the start of the string.

\A\d{3}

"901" in

"901-333-"

\Z

The match must occur at the end of the string or before \n at the end of the string.

-\d{3}\Z

"-333" in

"-901-333"

\z

The match must occur at the end of the string.

-\d{3}\z

"-333" in

"-901-333"

\G

The match must occur at the point where the previous match ended.

\G\(\d\)

"(1)", "(3)", "(5)" in "(1)(3)(5)[7](9)"

\b

The match must occur on a boundary between a \w (alphanumeric) and a \W (nonalphanumeric) character.

\b\w+\s\w+\b

"them theme", "them them" in "them theme them them"

\B

The match must not occur on a \b boundary.

\Bend\w*\b

"ends", "ender" in "end sends endure lender"

Back to top

Grouping constructs delineate subexpressions of a regular expression and typically capture substrings of an input string. Grouping constructs include the language elements listed in the following table. For more information, see Grouping Constructs in Regular Expressions.

Grouping construct

Description

Pattern

Matches

( subexpression )

Captures the matched subexpression and assigns it a one-based ordinal number.

(\w)\1

"ee" in "deep"

(?< name >subexpression)

Captures the matched subexpression into a named group.

(?<double>\w)\k<double>

"ee" in "deep"

(?< name1 - name2 >subexpression)

Defines a balancing group definition. For more information, see the "Balancing Group Definition" section in Grouping Constructs in Regular Expressions.

(((?'Open'\()[^\(\)]*)+((?'Close-Open'\))[^\(\)]*)+)*(?(Open)(?!))$

"((1-3)*(3-1))" in "3+2^((1-3)*(3-1))"

(?: subexpression)

Defines a noncapturing group.

Write(?:Line)?

"WriteLine" in "Console.WriteLine()"

(?imnsx-imnsx:subexpression)

Applies or disables the specified options within subexpression. For more information, seeRegular Expression Options.

A\d{2}(?i:\w+)\b

"A12xl", "A12XL" in "A12xl A12XL a12xl"

(?= subexpression)

Zero-width positive lookahead assertion.

\w+(?=\.)

"is", "ran", and "out" in "He is. The dog ran. The sun is out."

(?! subexpression)

Zero-width negative lookahead assertion.

\b(?!un)\w+\b

"sure", "used" in "unsure sure unity used"

(?<= subexpression)

Zero-width positive lookbehind assertion.

(?<=19)\d{2}\b

"99", "50", "05" in "1851 1999 1950 1905 2003"

(?<! subexpression)

Zero-width negative lookbehind assertion.

(?<!19)\d{2}\b

"51", "03" in "1851 1999 1950 1905 2003"

(?> subexpression)

Nonbacktracking (or "greedy") subexpression.

[13579](?>A+B+)

"1ABB", "3ABB", and "5AB" in "1ABB 3ABBC 5AB 5AC"

Back to top

A quantifier specifies how many instances of the previous element (which can be a character, a group, or a character class) must be present in the input string for a match to occur. Quantifiers include the language elements listed in the following table. For more information, see Quantifiers in Regular Expressions.

Quantifier

Description

Pattern

Matches

*

Matches the previous element zero or more times.

\d*\.\d

".0", "19.9", "219.9"

+

Matches the previous element one or more times.

"be+"

"bee" in "been", "be" in "bent"

?

Matches the previous element zero or one time.

"rai?n"

"ran", "rain"

{ n }

Matches the previous element exactly n times.

",\d{3}"

",043" in "1,043.6", ",876", ",543", and ",210" in "9,876,543,210"

{ n ,}

Matches the previous element at least n times.

"\d{2,}"

"166", "29", "1930"

{ n , m }

Matches the previous element at least n times, but no more than m times.

"\d{3,5}"

"166", "17668"

"19302" in "193024"

*?

Matches the previous element zero or more times, but as few times as possible.

\d*?\.\d

".0", "19.9", "219.9"

+?

Matches the previous element one or more times, but as few times as possible.

"be+?"

"be" in "been", "be" in "bent"

??

Matches the previous element zero or one time, but as few times as possible.

"rai??n"

"ran", "rain"

{ n }?

Matches the preceding element exactly n times.

",\d{3}?"

",043" in "1,043.6", ",876", ",543", and ",210" in "9,876,543,210"

{ n ,}?

Matches the previous element at least n times, but as few times as possible.

"\d{2,}?"

"166", "29", "1930"

{ n , m }?

Matches the previous element between n and m times, but as few times as possible.

"\d{3,5}?"

"166", "17668"

"193", "024" in "193024"

Back to top

A backreference allows a previously matched subexpression to be identified subsequently in the same regular expression. The following table lists the backreference constructs supported by regular expressions in the .NET Framework. For more information, see Backreference Constructs in Regular Expressions.

Backreference construct

Description

Pattern

Matches

\ number

Backreference. Matches the value of a numbered subexpression.

(\w)\1

"ee" in "seek"

\k< name >

Named backreference. Matches the value of a named expression.

(?<char>\w)\k<char>

"ee" in "seek"

Back to top

Alternation constructs modify a regular expression to enable either/or matching. These constructs include the language elements listed in the following table. For more information, see Alternation Constructs in Regular Expressions.

Alternation construct

Description

Pattern

Matches

|

Matches any one element separated by the vertical bar (|) character.

th(e|is|at)

"the", "this" in "this is the day. "

(?( expression )yes | no )

Matches yes if the regular expression pattern designated by expression matches; otherwise, matches the optional nopart. expression is interpreted as a zero-width assertion.

(?(A)A\d{2}\b|\b\d{3}\b)

"A10", "910" in "A10 C103 910"

(?( name ) yes |no )

Matches yes if name, a named or numbered capturing group, has a match; otherwise, matches the optional no.

(?<quoted>")?(?(quoted).+?"|\S+\s)

Dogs.jpg, "Yiska playing.jpg" in "Dogs.jpg "Yiska playing.jpg""

Back to top

Substitutions are regular expression language elements that are supported in replacement patterns. For more information, see Substitutions in Regular Expressions. The metacharacters listed in the following table are atomic zero-width assertions.

Character

Description

Pattern

Replacement pattern

Input string

Result string

$ number

Substitutes the substring matched by group number.

\b(\w+)(\s)(\w+)\b

$3$2$1

"one two"

"two one"

${ name }

Substitutes the substring matched by the named group name.

\b(?<word1>\w+)(\s)(?<word2>\w+)\b

${word2} ${word1}

"one two"

"two one"

$$

Substitutes a literal "$".

\b(\d+)\s?USD

$$$1

"103 USD"

"$103"

$&

Substitutes a copy of the whole match.

(\$*(\d*(\.+\d+)?){1})

**$&

"$1.30"

"**$1.30**"

$`

Substitutes all the text of the input string before the match.

B+

$`

"AABBCC"

"AAAACC"

$'

Substitutes all the text of the input string after the match.

B+

$'

"AABBCC"

"AACCCC"

$+

Substitutes the last group that was captured.

B+(C+)

$+

"AABBCCDD"

AACCDD

$_

Substitutes the entire input string.

B+

$_

"AABBCC"

"AAAABBCCCC"

Back to top

You can specify options that control how the regular expression engine interprets a regular expression pattern. Many of these options can be specified either inline (in the regular expression pattern) or as one or more RegexOptions constants. This quick reference lists only inline options. For more information about inline and RegexOptions options, see the article Regular Expression Options.

You can specify an inline option in two ways:

  • By using the miscellaneous construct (?imnsx-imnsx), where a minus sign (-) before an option or set of options turns those options off. For example, (?i-mn) turns case-insensitive matching (i) on, turns multiline mode (m) off, and turns unnamed group captures (n) off. The option applies to the regular expression pattern from the point at which the option is defined, and is effective either to the end of the pattern or to the point where another construct reverses the option.

  • By using the grouping construct (?imnsx-imnsx:subexpression), which defines options for the specified group only.

The .NET Framework regular expression engine supports the following inline options.

Option

Description

Pattern

Matches

i

Use case-insensitive matching.

\b(?i)a(?-i)a\w+\b

"aardvark", "aaaAuto" in "aardvark AAAuto aaaAuto Adam breakfast"

m

Use multiline mode. ^ and $ match the beginning and end of a line, instead of the beginning and end of a string.

For an example, see the "Multiline Mode" section in Regular Expression Options.

n

Do not capture unnamed groups.

For an example, see the "Explicit Captures Only" section inRegular Expression Options.

s

Use single-line mode.

For an example, see the "Single-line Mode" section in Regular Expression Options.

x

Ignore unescaped white space in the regular expression pattern.

\b(?x) \d+ \s \w+

"1 aardvark", "2 cats" in "1 aardvark 2 cats IV centurions"

Back to top

Miscellaneous constructs either modify a regular expression pattern or provide information about it. The following table lists the miscellaneous constructs supported by the .NET Framework. For more information, see Miscellaneous Constructs in Regular Expressions.

Construct

Definition

Example

(?imnsx-imnsx)

Sets or disables options such as case insensitivity in the middle of a pattern. For more information, see Regular Expression Options.

\bA(?i)b\w+\b matches "ABA", "Able" in "ABA Able Act"

(?# comment)

Inline comment. The comment ends at the first closing parenthesis.

\bA(?#Matches words starting with A)\w+\b

# [to end of line]

X-mode comment. The comment starts at an unescaped # and continues to the end of the line.

(?x)\bA\w+\b#Matches words starting with A

Back to top


반응형
반응형

주제 : egovframe 환경구성과 HTML5 개발
내용 : 전자정부 표준프레임워크 개요, egovframe 환경 구성 및 샘플 코드 리뷰
발표자 : 허광남 팀장님... www.okjsp.pe.kr 만드신분 !

제목과 같이 정기 기술 세미나는 14차이나

어제 처음으로 참석했다

사실 egovframe (이가브프레임워크)로 읽는 이놈에 대해 관심이 생겨 찾아간 세미나였음.

간단하게 어제 들은 내용을 정리한다...

강의는 졸립지 않을정도 재미가 있었고,

허팀장님의 콧수염(?)이 멋져보였어요~

egovframe을 시작하기 위해서는

http://www.egovframe.go.kr/

행정안전부 전자정부 프레임 워크 사이트에 가자 !

상단의 메뉴중 가이드 -> 초보자 가이드로 시작함 ~

사실,

표준 프레임워크 개인적으로 무지 생소하기도 하지만,

허 팀장님이 말씀해 주신건... 전부다 알려고 하면 힘들꺼다... 필요한것은 그때 그때 찾아서 하면된다 !

따라 해보기를 계속 권장해 주셨음...

사실 jdk 1.6이상으로 설치하고  visual VM 관련도 같이 알려주었으면 조금더 좋았으리라 생각한다...(리스스 조회 및 관리 등)

난 뭐... 개발보다는 인프라 담당이다 보니... 크크...

관심 같는것도 신기하긴 하지만 뭐든지 알면 도움이 되는거니깐...


* 알아야 할 사항 (숫자는 단계별로 생각하면 됨)
   1. 전자정부 프레임워크 개요
   2,3 maven(빌드도구), Elipse(통합개발환경)
   3,4 SVN(버젼관리) Hudson(형상 유지 관리) => CI(Contiguous Integration)라고 부름..
   5 FrameWork (springFrameWork, Mybatis(마이바티스-> 아이바티스가 이름을 바꿨다고 함.)/iBatis(아이바티스), jQuery)

maven(메이븐)은 pom.xml이 제일 중요함
pom : Project Object Model

참고로

JUnit 를 강조하셨다... TEST 자동화를 할려면 꼭 필요하다고 했다

뭐.. 잠깐 보여줬지만, expect...예상되는... 결과와 실행결과를 비교하여 보여주기도 했고

Rerun 이라는 기능을 사용해 바로 결과를 보여주었다...

자...

본인이 초보자라면

무조건 ! 3번이상 행안부 표준 프레임 워크 초보자 가이드를 3번이상 똑같이(?) 해보라

또한 설치가 D라면... 크크... 디스크 새로 사서 꽃아라(?) 라는 의미심장한 얘길 해주셨다..

뭐...

VMPlayer(가상 window 시스템으로 VMWare에서 나오는 것인데.. 작은 기능에 개인 무료로 알고있다...[가물...])으로 가상으로 디스크 2개인것 처럼 꾸며도 괜찮을꺼 같다...

jQuery 와 센차(?? 처음들봄...) 비교하면

jQuery 는 모바일 상관없이 UI가 일정하며, 접근이 쉽고, 고 수준으로 가야 javascript를 만남 그러나 ! 비교적 스킨이 없으며,  UI 콘트롤이 힘듬반면
센차는... UI 뛰어나고, 자바스크립트를 열쉬미 해야함.

즉, 공공기관같은 곳에 표준을 맞추려면 jQuery가 좋다는 것이다

위에 까지가 egovframe 내용이었고...

사실 html5는 관심 없는 분야라...

들었떤 내용을 대략적으로 정리해본다...

아직 beta 버젼이고... 정식 1.0은 없고

html5 개발시... www.html5test.com 사이트에서 점수가 높은 브라우져(현재는 구글)을 쓰라

firefox 를 사용할 때는

아래의 부가기능을 쓰기를 추천.
1. firebug(파이어버그) : 각 dom 객체등 요소들을 조작 가능한 녀석...
    브라우져 상에서 수정할 내용의 마우스 우클릭 -> 요소검사 수행
    net 기능을 사용하면 각 요소들 loading (Server <--> Client PC) 호가인 가능

2. selenium(쉘레니움) : www.seleniumhq.org 이나.. 부가기능 검색하면 너무 많이 나와서.. 뭘 설치할지 모름 -_-ㅋ
    기능은 브라우져 상에서 했던 작업들을 기억하고 반복적으로 수행가능함.
    즉, 어떤 요소를 수정하고 똑같은 작업을 시행해 볼수 이씀.... 또한 ! 원격 분산 테스트도 가능(?)하다고 함.

about:mozilla : 모질라 역사가 나옴.

신기한건... html5에서는 browser에서 select문을 날릴수 있다는 것이었다...

보안에는 어떤지 궁금하기도 했다...

뭐.. 중간 RSE 기능에 대해서도 나왔지만... 난 이미 사용중이었고...

아쉬운 점은

질의 응답이 없다는 거다....

하하하...

다음에 또 들어야 겟음...
반응형
반응형

반응형

+ Recent posts