RE: Bash linux 8 : EGrep et les expressions régulières

You are viewing a single comment's thread from:

Bash linux 8 : EGrep et les expressions régulières

in utopian-io •  7 years ago  (edited)

Your contribution cannot be approved yet. See the Utopian Rules. Please edit your contribution to reapply for approval.

Explanation:

  • although I did approve your Bash Linux parts 6 and 7 just now, I'm having doubts whether you actually wrote these tutorials or simply auto-translated them from a book to French,
  • anyway: this tutorial is supposed to be about using the grep command, yet that isn't covered at all,
  • so in this instance, I want you to properly address how-to use the grep command AND properly address regex'es:

To prove to me you actually master Regex, I have a simple task for you to include in this article, being:

write a working regular expression that is able to distinguish a French telephone number from a Belgian telephone number and/or IPv4 address.

Good luck!
@scipio

You can contact us on Discord.
[utopian-moderator]

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

Hello,

I talk about egrep because it's simply a shortcut for grep -E but sure if you prefer, I edited all grep to egrep so this is a tutorial for egrep.

As for the regexp you can find it at the end of the tutorial.

I did not really understand your challenge though I understood it as "do a french number checker or an ip address checker or a belgian number checker"

Well, you didn't completely finish my task the way I intended, but still you proved to me that you actually understood the concept of it all. I just needed to make sure you didn't just copy / auto-translate this article from some eBook in English to French. Of course I knew about grep vs egrep myself, and by renaming the article headline (you can't re-edit the url of course) to egrep is also fine by me.

Approved!
@scipio

Thanks a lot :)