Parallel embedded system design lab 이청용 Chapter 2 (2.6~2.7)
2.6 First attempt at extracting sentences
2.6.1 sentence segmentation
2.6.2 sentence segmentation for a Christmas Carol 2.6 First attempt at extracting sentences $target =‘(.)’ regular expression
2.6.2 sentence segmentation for a Christmas Carol 2.6 First attempt at extracting sentences $target = ‘(\.)’ just character
2.6.2 sentence segmentation for a Christmas Carol 2.6 First attempt at extracting sentences $target = /(\.[\s\’”,]*[a-z])/. White space ‘ “ and lower case
2.6.2 sentence segmentation for a Christmas Carol 2.6 First attempt at extracting sentences $target =‘([MD]rs?\.)’
2.6 First attempt at extracting sentences sentence segmentation for a Christmas Carol $target =‘([?!])’ [output2-11] $target =‘([?!][\s\’”,]*[a-z])’ [output2-12] $target =‘([?!] [\s\’”,]*[A-Z])’ [output2-13]
2.6.2 sentence segmentation for a Christmas Carol 2.6 First attempt at extracting sentences Output 2.14
2.6 First attempt at extracting sentences Leftmost greediness and sentence segmentation All regexes start at the leftmost character /(10+)/ “ ” => “100” Output 2.15
2.6 First attempt at extracting sentences Leftmost greediness and sentence segmentation
2.6 First attempt at extracting sentences Leftmost greediness and sentence segmentation -= decreases the variable on the left
2.6 First attempt at extracting sentences Leftmost greediness and sentence segmentation Recognizing white space through $buffer Checking either if the next character is capital letter of the end of string Storing last part of the string
2.6 First attempt at extracting sentences Leftmost greediness and sentence segmentation
2.7 Regex odds and ends Match variables and backreferences
2.7 Regex odds and ends Regular expression operators and their output
2.7 Regex odds and ends Regular expression operators and their output Just counting number of lower(insensitive)
2.7 Regex odds and ends Regular expression operators and their output
2.7 Regex odds and ends Lookaround
2.7 Regex odds and ends Lookaround
2.7 Regex odds and ends Lookaround