Search Results

Search: Posts Made By: Scrutinizer
10,005
Posted By Scrutinizer
Hi Bakunin, The OP stated she was using GNU...
Hi Bakunin,

The OP stated she was using GNU grep at the beginning. However please note that I suggested a general egrep solution. The Posix specification states that egrep is deprecated and that...
10,005
Posted By Scrutinizer
Try: echo "u_sA9e-u" | grep -E...
Try:
echo "u_sA9e-u" | grep -E '([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)'
10,005
Posted By Scrutinizer
Strange, when I do this I get: $ echo...
Strange, when I do this I get:
$ echo "u_sA9e-u" | grep -E "([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)"
$ echo "u_sx9e-u" | grep -E "([[:space:]]|^)[a-z_][a-z0-9_-]*[$]?([[:space:]]|$)"...
10,005
Posted By Scrutinizer
@Bakunin, we should also take words at the start...
@Bakunin, we should also take words at the start (^) or the end of the line ($). Using [<b><tab>]* with no further anchors means that it may match part of a word too, since we are allowing occurrence...
Showing results 1 to 4 of 4

 
All times are GMT -4. The time now is 11:18 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy