grep reg exp
How would I use a unix grep regular expression to find any two capital letters side by side and how would I find an expected comma in an expected spot? Thanks for any and all replies.
|
Quote:
Code:
egrep "[A-Z]{2}" Quote:
Cheers, Tink |
Garret, you said in your thread that I moved to GENERAL that you
feel your course left you ill equipped to solve your quizzes. As far as regular expressions go there are a few very good on-line tutorials 1) 2), and if you have some money to spare I'd recommend you get O'Reilly's "Mastering regular expressions" by Jeffrey E.F. Friedl. Cheers, Tink [1] http://www.regular-expressions.info/tutorial.html [2] http://www.zytrax.com/tech/web/regex.htm |
All times are GMT -5. The time now is 06:26 PM. |