48
matanl
7y

^.* is not an emoticon

Comments
  • 1
    Dammit, I forgot the meaning of dots in regex ._.
  • 3
    I ++'ed without understanding it really..
  • 5
    How else do you represent a pirate? 😂
  • 6
    ^ means beginning of a string
    . means any char
    * means zero or more times
  • 0
    @matanl similar to grep usage & regular grammar expression. Good to know thanks.
  • 1
    @A-0-C regular expressions have the same principles over all languages which contains them. There are minor syntax changes from time to time, but bash, perl, python, php, javascript etc. regexps are the same regexps..
  • 0
    But it could match /any/ emoticon... At the evening of a line anyway
Add Comment