skip to content
Alvin Lucillo

Match with wildcard dot

/ 1 min read

💻 Tech

To match the first 3 texts only and skip the last, use regex: .\.

  • . is a wildcard that matches any single character
  • \. escapes the dot (.), making it refer to the literal dot rather than acting as a wildcard
  • as a result, it matches any text the has one character followed by a literal dot
Task	Text	 
match	cat.
match	896.
match	?=+.
skip	abc1