Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

php regular-expressions?

Other discussion about creating web sites for Cumulus that doesn't have a specific subforum

Moderator: daj

Post Reply
n9mfk
Posts: 845
Joined: Sun 10 May 2009 8:52 pm
Weather Station: davis vp2 Serial datalogger
Operating System: Windows 7 64-bit
Location: Springfield, IL

php regular-expressions?

Post by n9mfk »

hi all,
i need help reading this

Code: Select all

preg_match('|(.*)on(.*)$|', $time, $matches);
what wood this look for

Code: Select all

|(.*)on(.*)$|
also were can i find more info
thanks Beau
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: php regular-expressions?

Post by beteljuice »

It appears to be an over complicated way to find 'on' in the string $time.

For (some) help on regex syntax RTFM http://www.php.net/manual/en/reference. ... syntax.php
Image
......................Imagine, what you will KNOW tomorrow !
Post Reply