Register training material
2 material found

Keywords: Regular Expressions 


Mastering text with Regular Expressions

Have you ever wanted to extract phone numbers out of a block of unstructured text? Or email addresses. Or find all the words that start with “e” and end with “ed”, no matter their length? Or search through DNA sequences for a pattern? Or extract coordinates from GPS data?

Regular Expressions...

Keywords: Data Analysis, Regular Expressions

Mastering text with Regular Expressions https://dresa.org.au/materials/mastering-text-with-regular-expressions Have you ever wanted to extract phone numbers out of a block of unstructured text? Or email addresses. Or find all the words that start with “e” and end with “ed”, no matter their length? Or search through DNA sequences for a pattern? Or extract coordinates from GPS data? Regular Expressions (regexes) are a powerful way to handle a multitude of different types of data. They can be used to find patterns in text and make sophisticated replacements. Think of them as find and replace on steroids. Come along to this workshop to learn what they can do and how to apply them to your research. #### You'll learn: - Comprehend and apply the syntax of regular expressions - Use the http://regexr.com tool to test a regular expression against some text - Construct simple regular expressions to find capitalised words; all numbers; all words that start with a specific set of letters, etc. in a block of text - Craft and test a progressively more complex regular expression - Find helpful resources covering regular expressions on the web #### Prerequisites: Comprehend and apply the syntax of regular expressions Use the http://regexr.com tool to test a regular expression against some text Construct simple regular expressions to find capitalised words; all numbers; all words that start with a specific set of letters, etc. in a block of text Craft and test a progressively more complex regular expression Find helpful resources covering regular expressions on the web **For more information, please click [here](https://intersect.org.au/training/course/regex101).** training@intersect.org.au Data Analysis, Regular Expressions
Regular Expressions on the Command Line

Would you like to use regular expressions with the classic command line utilities find, grep, sed and awk? These venerable Unix utilities allow you to search, filter and transform large amounts of text (including many common data formats) efficiently and repeatably.

You'll learn:

  • find to...

Keywords: Data Analysis, Regular Expressions

Regular Expressions on the Command Line https://dresa.org.au/materials/regular-expressions-on-the-command-line Would you like to use regular expressions with the classic command line utilities find, grep, sed and awk? These venerable Unix utilities allow you to search, filter and transform large amounts of text (including many common data formats) efficiently and repeatably. #### You'll learn: - find to locate files and directories matching regexes. - grep to filter lines in files based on pattern matches. - sed to find and replace using regular expressions and captures. - awk to work with row- and column-oriented data. #### Prerequisites: This course assumes prior knowledge of the basic syntax of regular expressions. If you're new to regular expressions or would like a refresher, take our Mastering text with Regular Expressions course first. This course also assumes basic familiarity with the Bash command line environment found on GNU/Linux and other Unix-like environments. Take our Unix Shell and Command Line Basics course to get up to speed quickly. **For more information, please click [here](https://intersect.org.au/training/course/regex201).** training@intersect.org.au Data Analysis, Regular Expressions