File: multiline_regex.txt

package info (click to toggle)
cmd2 2.5.11%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 10,244 kB
  • sloc: python: 19,643; makefile: 73; sh: 67; javascript: 30
file content (6 lines) | stat: -rw-r--r-- 163 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
# these regular expressions match multiple lines of text

(Cmd) say -r 3 -s yabba dabba do
/\A(YA.*?DO\n?){3}/
(Cmd) say -r 5 -s yabba dabba do
/\A([A-Z\s]*$){3}/