tailieunhanh - Professional Information Technology-Programming Book part 96

Tham khảo tài liệu 'professional information technology-programming book part 96', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | . matches any character alphabetic characters digits and even . itself sales. This example contains one additional file . The file was matched by the pattern sales. as . matches any character. Multiple .s may be used either together one after the other using . will match any two characters next to each other or in different locations in the pattern. Let s look at another example using the same text. This time you need to find all files for North America na or South America sa regardless of what digit comes next .a. The regex .a. did indeed find na1 na2 and sa1 but it also found four other matches that it was not supposed to. Why Because the pattern matches any three characters so long as the middle one is a. What is needed is a pattern that matches .a. followed by a period. Here is another try .