It's UWAweek 47

helpOSTS

This forum is provided to promote discussion amongst students enrolled in Open Source Tools and Scripting.

Please consider offering answers and suggestions to help other students! And if you fix a problem by following a suggestion here, it would be great if other interested students could see a short "Great, fixed it!"  followup message.

How do I ask a good question?
Displaying selected article
Showing 1 of 445 articles.
Currently 59 other people reading this forum.


 UWA week 22 (1st semester, study break) ↓
SVG not supported

Login to reply

👍?
helpful

While 'sed -E' and 'grep -E' support the extended regular expressions (ERE), which is the RE syntax of awk, any reasons why we stick to the basic regular expressions (BRE)? Firstly, 'buy 1 get 3' is appealing because the ERE syntax works in these commands, reducing the cognitive load when learning and using. Secondly, regarding the portability, I do not have a clue about the targeted operating system or whether we will log in to an ancient machine. Since in Ubuntu 23.04, those commands support the ERE, I think it should run well on other UNIX-like systems having software updated. Thirdly, the BRE is a little counter-intuitive. For example, some meta characters like '?', and '+' have to be backslashed to become quantifiers, but '*' does not have to. Someone who has not read the manual may fall into this pitfall, not understanding what goes wrong.

The University of Western Australia

Computer Science and Software Engineering

CRICOS Code: 00126G
Written by [email protected]
Powered by history
Feedback always welcome - it makes our software better!
Last modified  8:08AM Aug 25 2024
Privacy policy