Question Description
Reply for below 2 posts. APA format and 100-150 words each post
Reply Post
When replying to a classmate, offer your opinion on what they think is the importance of regular expressions and whether you agree or disagree, and why.
Discussion 1:
Regular expression refers to a pattern used to check a string of text of interest within a given data stream. The system used to implement regular expression can effectively check and return back a given string of text if it accurately matches a given expression pattern. The importance of regular expression in data analytics is its ability to aid a data analyst in the transformation and manipulation of datasets. Regular expression is therefore used for pattern matching in data analytics (Suchanek, & Weikum, 2014). Regular expression is therefore an important process is data analysis since it accords the analyst with an ability to manipulate a given data set for the sake of achieving certain objectives. Some example of regular expressions are asterisks (*), square brackets ([ ]), dollar sign ($), ampersand (&), question mark (?), backslash (), carat (^) and many more.
The difference between major various types of regular expressions
A square bracket for instance ([ ]) is used to match any one character in the given string. A regular expression that’s followed by an asterisk (*) is used to match zero or more occurrences of the given string of text. There are regular expressions for matching simple expressions, matching any character such as a period (.), grouping expressions such as double parenthesis (()), choosing a single character from many such as the use of enclose square brackets ([ ]), as well as matching the start and end of a given line.
The difference between two types of regular expressions
The two chosen regular expressions were square brackets and asterisk. A square bracket for instance ([ ]) is used to match any one character in the given string. It is also used to match the start and end of a given line. On the other hand, when a regular expression that’s followed by an asterisk (*) is used to match zero or more occurrences of the given string of text. When texting while communicating, asterisk can also be used to indicate correction of a word in the previous message.
References
Suchanek, F. M., & Weikum, G. (2014). Knowledge bases in the age of big data analytics. PVLDB, 7(13), 1713-1714
Discussion 2:
Importance of regular expression in data analytics:
The regular expression is pretty vital notation for determining patterns and each and every pattern matches a set of strings. However regular expressions are names for a set of strings. The combination of a named set of patterns with a single character pattern is called a regular expression. There are a number of more advanced types of regular expressions that may be used for specific tasks, and in addition they may also be combined. An example of such combination is a regular expression that can be used to scan through a set of text. These methods, regular expressions are often used in programming projects that are quite complex and involve extensive pattern matching. By knowing how regular expressions work and understanding some of their conventions, developers can use the them to make their programs easier to use and to find. There is a class for each primitive types of regular expression. For example, for the recompile method, there is a class for matching the wildcard character. Another set of classes are used for matching regular expression pattern special characters and literal patterns. (Both, D. (2020))
Single characters:
A single character regexp is a collection of regular expressions.
A string with a single character is represented by the value <EOF>, whereas a string with multiple characters is represented by a regexp whose components are strings of character symbols.
Precedence numbers <C-A-Z> The ASCII code of the decimal expansion of the ASCII character whose ASCII code is less than or equal to the ASCII code of the preceding character
Wild cards:
The wildcard matches any character except the letter “n”, which appears at the beginning of a line
It allows commands to be unique (those that behave differently when you invoke them multiple times), to be grouped together (run on a list of files), and to store more information about the command (a lot more information).
Example: /etc/net/ftp-server/conf.d/* (Rao, V. T. (2020))
Reference:
Both, D. (2020). Regular Expressions. In Using and Administering Linux: Volume 2 (pp. 137-157). Apress, Berkeley, CA.
Unhelkar, B., & Rao, V. T. (2020). Key Considerations in Optimizing the Deployment of Big Data Analytics-as-a-Service Utilizing Cloud Architecture and Machine Learning. In Proceedings of ICETIT 2019 (pp. 818-832). Springer, Cham.