↓ Skip to Main Content
Oracle Tutoring, Campbell River, BC (250) 203-6544 (text) or (250) 830-0295 (talk)

Main Navigation

  • english
  • math
  • lifestyle
  • blog home
  • website
Oracle Tutoring, Campbell River, BC (250) 203-6544 (text) or (250) 830-0295 (talk)

Off Canvas Menu

  • english
  • math
  • lifestyle
  • blog home
  • website

Category: regular expressions

Comp sci: regular expressions: newline in regex

By Jack Posted on September 5, 2021 Posted in PHP, regular expressions

Self-tutoring about regex: the tutor mentions the newline in a detection pattern. In PHP regex, \n means ‘newline’. Therefore, $pat=’/\n/’; will be found in a string containing a newline. Source: w3schools.com

Copyright © 2026 Oracle Tutoring, Campbell River, BC | Powered by Responsive Theme
Copyright © 2026 Oracle Tutoring, Campbell River, BC | Powered by Responsive Theme