Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
Programming

/

etc. (Programming)

Regular expressions for web programming

Do you need regular expressions to validate user input in web programming?

(5.0) 3 reviews

68 learners

  • stgray220932
정규식
정규표현식
문자열
Regex

What you will learn!

  • Writing a regular expression

  • Using Regular Expressions in Java, JavaScript, and SQL

Regular expressions are not optional, they are required

We have to use a lot of regular expressions in our programming process.

The most representative case is the verification process for user input values in web programming.

Here's an example of inflearn's sign-up screen. It's horrifying to think that the user input is in the correct email format and that the password complexity complies with the guidelines, but it's handled as a string.



It is also used for string pattern search in various programming fields such as Java, JavaScript, and SQL.

public C regexMatchers ( String ... regexPatterns ) { Assert . state (! this . anyRequestConfigured , "Can't configure regexMatchers after anyRequest" ); return chainRequestMatchers ( RequestMatchers . regexMatchers (regexPatterns)); }


It's just a simple string, but when you look at the expression, you wonder what it means.

^ [\w.-] {1,64}@ [\w.-] {1,252}\.\w{2,4}$


It's not that difficult once you know a few things!

Regular expressions use a few metacharacters to construct patterns and perform search and replacement operations. When I first learned Korean, even the letters ㄱ, ㄴ, and ㄷ were difficult, but now I can read and write them with ease. Just like that, regular expressions are easy to learn once you learn just a few metacharacters.

Frankly, it's not easy to masterfully create patterns using regular expressions. Fortunately, many of the regular expressions we need have already been developed, but they simply don't fit our needs perfectly. Therefore, the only skill we need is to find expressions that fit our needs, read them, and modify them slightly to suit our needs.


Even if you don't necessarily need to become a master of regular expressions, don't you need the ability to comfortably read other regular expressions and modify them to suit the situation of your project/code?

Recommended for
these people

Who is this course right for?

  • Anyone who wants to write regular expressions in web programs

  • All that needs string pattern search

Need to know before starting?

  • Java (a little unit testing)

  • JavaScript (Variable Declaration)

  • Sql (basic select statement)

Hello
This is

102

Learners

5

Reviews

5.0

Rating

2

Courses

안녕하세요. 모두의 코딩:두딩입니다~

활용도가 높은 지식들을 쉽게 풀어서 설명하는게 너무 재미있고 수강생들이 이해했을 때 행복함을 느끼는 강사입니다. 20여년 넘게 강의와 개발을 오가며 활동했고 지금은 강의와 블로그, 유투브등을 통해서 소통하고 있습니다.

저의 작은 활동이 누군가의 삽질을 줄일 수 있다면 정말 뿌듯할 것 같습니다.

 

 

Curriculum

All

12 lectures ∙ (1hr 38min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

3 reviews

5.0

3 reviews

  • 정호연님의 프로필 이미지
    정호연

    Reviews 53

    Average Rating 5.0

    5

    67% enrolled

    • 1466su님의 프로필 이미지
      1466su

      Reviews 1

      Average Rating 5.0

      5

      67% enrolled

      회사 업무를 진행하며 정규 표현식을 통해 문자열 분석 로직을 구현해야할 때가 있었는데, 강의를 수강하고 덕분에 복잡한 문자열 매칭도 표현식 하나로 해결할 수 있었습니다! 시중에 나와있는 강의 및 자료들 중에 가장 자세하게 알려주십니다! 특히 실전 개발에서 쓸 수 있는 다양한 스킬들을 중간중간에 함께 알려주셔서 더욱 도움이 되었네요 👍🏻👍🏻

      • 모두의 코딩:두딩
        Instructor

        좋은 평가 감사합니다~~

    • youngfeb님의 프로필 이미지
      youngfeb

      Reviews 1

      Average Rating 5.0

      5

      33% enrolled

      필요한 부분만 쏙쏙 잘 설명되었습니다. 감사합니다.

      $8.80

      stgray220932's other courses

      Check out other courses by the instructor!