PROGRAMMING

MINTE9
REMEMBERS




Start End

Get into the habit of interpreting regex in a rather literal way. Don't think ^cat matches if you have: a line with cat at the beginning. But rather ^cat mathces if you have: the beginning of a line, followed by c, by a, ...
 
/^cat/ # beggining
/cat$/ # end
/^$/ # empty line

FIND AT THE END   ☆

 CompleteTask

# Regex to find "cat" only at the end of the Text String
# Test String: My cat is a crazy cat

//g

Questions    
2. Classes
01 . Metacharacters
Last update:   06-07-2021

        A B C D E F
🔔
1/3