How can I understand this?
Hello,
will anybody give an interpretation of the match sentence like that? /^[^#]/, the purpose is to match lines without # as its first character. I just want to know the how it works. |
The first "^" means: at the start of a line.
The [^#] means: any character EXCEPT a "#" because when ^ is the first character inside [these brackets] it means NOT the next character(s). Sasha PS - look up "man 7 regex" or "man regex" or Google "regular expressions" for much more ;) |
Is this related to your question back in August? Are you still working in the same place?
What books and tutorials have you been using? |
thanks
Quote:
thank you again. |
In addition to what was recommended in August:
Bash Guide for Beginners---free at http://tldp.org Linux in a Nutshell from O'Reilly |
All times are GMT -5. The time now is 01:07 AM. |