Regular Expressions 101

Save & Share

  • Regex Version: ver. 4
  • Update Regex
    ctrl+⇧+s
  • Save new Regex
    ctrl+s
  • Add to Community Library

Flavor

  • PCRE2 (PHP >=7.3)
  • PCRE (PHP <7.3)
  • ECMAScript (JavaScript)
  • Python
  • Golang
  • Java 8
  • .NET 7.0 (C#)
  • Rust
  • Regex Flavor Guide

Function

  • Match
  • Substitution
  • List
  • Unit Tests

Tools

Sponsors
There are currently no sponsors. Become a sponsor today!
An explanation of your regex will be automatically generated as you type.
Detailed match information will be displayed here automatically.
  • All Tokens
  • Common Tokens
  • General Tokens
  • Anchors
  • Meta Sequences
  • Quantifiers
  • Group Constructs
  • Character Classes
  • Flags/Modifiers
  • Substitution
  • A single character of: a, b or c
    [abc]
  • A character except: a, b or c
    [^abc]
  • A character in the range: a-z
    [a-z]
  • A character not in the range: a-z
    [^a-z]
  • A character in the range: a-z or A-Z
    [a-zA-Z]
  • Any single character
    .
  • Alternate - match either a or b
    a|b
  • Any whitespace character
    \s
  • Any non-whitespace character
    \S
  • Any digit
    \d
  • Any non-digit
    \D
  • Any word character
    \w
  • Any non-word character
    \W
  • Non-capturing group
    (?:...)
  • Capturing group
    (...)
  • Zero or one of a
    a?
  • Zero or more of a
    a*
  • One or more of a
    a+
  • Exactly 3 of a
    a{3}
  • 3 or more of a
    a{3,}
  • Between 3 and 6 of a
    a{3,6}
  • Start of string
    ^
  • End of string
    $
  • A word boundary
    \b
  • Non-word boundary
    \B

Regular Expression

/
/
gm

Test String

Code Generator

Generated Code

$re = '/(?<Timestamp>^\S{3}\s\d{2},\s\d{4}\s\d{1,2}:\d{1,2}:\d{1,2}\s\S{2})\s(?<level>\S+)\s(?<class>\S+)\s(?<method>\S*)\n(?<message>(.|\n)+?(?=^\S{3}\s\d{2}|\Z))/m'; $str = 'Jul 01, 2019 8:53:15 AM INFO org.eclipse.jetty.server.handler.ContextHandler doStart Started w.@29d80d2b{Jenkins v2.150.3,/,file:///var/jenkins_home/war/,AVAILABLE}{/var/jenkins_home/war} Jul 01, 2019 8:53:15 AM INFO org.eclipse.jetty.server.AbstractConnector doStart Started ServerConnector@46d59067{HTTP/1.1,[http/1.1]}{0.0.0.0:8080} Jul 01, 2019 8:53:15 AM INFO org.eclipse.jetty.server.Server doStart Started @2266ms Jul 01, 2019 8:53:15 AM INFO winstone.Logger logInternal Winstone Servlet Engine v4.0 running: controlPort=disabled Jul 01, 2019 8:53:17 AM INFO jenkins.InitReactorRunner$1 onAttained Started initialization Jul 01, 2019 8:53:18 AM INFO jenkins.InitReactorRunner$1 onAttained Listed all plugins Jul 01, 2019 8:53:18 AM INFO com.sonyericsson.hudson.plugins.gerrit.trigger.PluginImpl start Starting Gerrit-Trigger Plugin Jul 01, 2019 8:53:18 AM INFO com.sonymobile.tools.gerrit.gerritevents.GerritSendCommandQueue startQueue SendQueue started! Current pool size: 1 Jul 01, 2019 8:53:26 AM INFO jenkins.InitReactorRunner$1 onAttained Prepared all plugins Jul 01, 2019 8:53:26 AM INFO com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationCache initialize initialized replication cache with expiration in MINUTES: 360 Jul 01, 2019 8:53:26 AM WARNING com.sonyericsson.hudson.plugins.gerrit.trigger.replication.ReplicationQueueTaskDispatcher No GerritHandler was specified, won\'t register as event listener, so no function. Jul 01, 2019 8:53:26 AM INFO jenkins.InitReactorRunner$1 onAttained Started all plugins Jul 01, 2019 8:53:26 AM WARNING hudson.model.Descriptor load Failed to load /var/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml java.lang.ArrayIndexOutOfBoundsException: -1 at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) at hudson.XmlFile.unmarshal(XmlFile.java:178) Caused: java.io.IOException: Unable to read /var/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml at hudson.XmlFile.unmarshal(XmlFile.java:181) at hudson.XmlFile.unmarshal(XmlFile.java:161) at hudson.model.Descriptor.load(Descriptor.java:898) at jenkins.model.JenkinsLocationConfiguration.load(JenkinsLocationConfiguration.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:591) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:440) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:494) at hudson.ExtensionList.load(ExtensionList.java:380) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:318) at hudson.ExtensionList.iterator(ExtensionList.java:172) at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1539) at hudson.plugins.git.GitSCM.onLoaded(GitSCM.java:1887) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1083) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Jul 01, 2019 8:53:26 AM WARNING hudson.model.Descriptor load Failed to load /var/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml java.lang.ArrayIndexOutOfBoundsException: -1 at com.thoughtworks.xstream.core.util.FastStack.pop(FastStack.java:42) at com.thoughtworks.xstream.io.xml.AbstractPullReader.move(AbstractPullReader.java:125) at com.thoughtworks.xstream.io.xml.AbstractPullReader.moveDown(AbstractPullReader.java:103) at com.thoughtworks.xstream.io.xml.XppReader.<init>(XppReader.java:63) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:54) at com.thoughtworks.xstream.io.xml.AbstractXppDriver.createReader(AbstractXppDriver.java:65) at hudson.XmlFile.unmarshal(XmlFile.java:178) Caused: java.io.IOException: Unable to read /var/jenkins_home/jenkins.model.JenkinsLocationConfiguration.xml at hudson.XmlFile.unmarshal(XmlFile.java:181) at hudson.XmlFile.unmarshal(XmlFile.java:161) at hudson.model.Descriptor.load(Descriptor.java:898) at jenkins.model.JenkinsLocationConfiguration.load(JenkinsLocationConfiguration.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.ExtensionFinder$GuiceFinder$SezpozModule.onProvision(ExtensionFinder.java:591) at com.google.inject.internal.ProvisionListenerStackCallback$Provision.provision(ProvisionListenerStackCallback.java:126) at com.google.inject.internal.ProvisionListenerStackCallback.provision(ProvisionListenerStackCallback.java:68) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:267) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1103) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.internal.SingletonScope$1.get(SingletonScope.java:145) at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:440) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1016) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1092) at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1012) at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:402) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:393) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:494) at hudson.ExtensionList.load(ExtensionList.java:380) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:318) at hudson.ExtensionList.iterator(ExtensionList.java:172) at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1539) at hudson.plugins.git.GitSCM.onLoaded(GitSCM.java:1887) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104) at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296) at jenkins.model.Jenkins$5.runTask(Jenkins.java:1083) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Jul 01, 2019 8:53:27 AM INFO hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1 error Failed to instantiate optional component hudson.plugins.build_timeout.operations.AbortAndRestartOperation$DescriptorImpl; skipping Jul 01, 2019 8:53:28 AM INFO jenkins.InitReactorRunner$1 onAttained Augmented all extensions Jul 01, 2019 8:53:28 AM INFO jenkins.InitReactorRunner$1 onAttained Loaded all jobs Jul 01, 2019 8:53:28 AM INFO jenkins.util.groovy.GroovyHookScript execute Executing /var/jenkins_home/init.groovy.d/executors.groovy Jul 01, 2019 8:53:28 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Download metadata Jul 01, 2019 8:53:28 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Download metadata. 41 ms Jul 01, 2019 8:53:29 AM INFO jenkins.util.groovy.GroovyHookScript execute Executing /var/jenkins_home/init.groovy.d/tcp-slave-agent-port.groovy Jul 01, 2019 8:53:29 AM INFO org.springframework.context.support.AbstractApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@4ff0347: display name [Root WebApplicationContext]; startup date [Mon Jul 01 08:53:29 UTC 2019]; root of context hierarchy Jul 01, 2019 8:53:29 AM INFO org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@4ff0347]: org.springframework.beans.factory.support.DefaultListableBeanFactory@39da5b07 Jul 01, 2019 8:53:29 AM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@39da5b07: defining beans [authenticationManager]; root of factory hierarchy Jul 01, 2019 8:53:29 AM INFO org.springframework.context.support.AbstractApplicationContext prepareRefresh Refreshing org.springframework.web.context.support.StaticWebApplicationContext@120f6107: display name [Root WebApplicationContext]; startup date [Mon Jul 01 08:53:29 UTC 2019]; root of context hierarchy Jul 01, 2019 8:53:29 AM INFO org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@120f6107]: org.springframework.beans.factory.support.DefaultListableBeanFactory@306c455e Jul 01, 2019 8:53:29 AM INFO org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@306c455e: defining beans [filter,legacy]; root of factory hierarchy Jul 01, 2019 8:53:29 AM INFO jenkins.InitReactorRunner$1 onAttained Completed initialization Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.SlackNotifier$Migrator onLoaded Starting Settings Migration Process Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-func" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-ha" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-perf" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-rebuild" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-sanity" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-shaker" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-spt" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-stacklight" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "cvp-tempest" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "deploy-openstack-compute" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "deploy_openstack" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.config.JobConfigMigrator migrate Migrating job "validate_openstack" with type org.jenkinsci.plugins.workflow.job.WorkflowJob Jul 01, 2019 8:53:29 AM INFO jenkins.plugins.slack.SlackNotifier$Migrator onLoaded Completed Settings Migration Process Jul 01, 2019 8:53:29 AM INFO hudson.WebAppMain$3 run Jenkins is fully up and running Jul 01, 2019 8:53:32 AM WARNING hudson.TcpSlaveAgentListener$ConnectionHandler run Connection #1 failed java.io.EOFException at java.io.DataInputStream.readFully(DataInputStream.java:197) at java.io.DataInputStream.readFully(DataInputStream.java:169) at hudson.TcpSlaveAgentListener$ConnectionHandler.run(TcpSlaveAgentListener.java:244) Jul 01, 2019 8:53:32 AM INFO hudson.TcpSlaveAgentListener$ConnectionHandler run Accepted JNLP4-connect connection #2 from 10.0.0.6/10.0.0.6:36328 Jul 01, 2019 8:53:35 AM WARNING org.jenkinsci.remoting.util.AnonymousClassWarnings warn Attempt to (de-)serialize anonymous class org.jenkinsci.plugins.envinject.EnvInjectComputerListener$2 in file:/var/jenkins_home/plugins/envinject/WEB-INF/lib/envinject.jar; see: https://jenkins.io/redirect/serialization-of-anonymous-classes/ Jul 01, 2019 9:04:04 AM WARNING hudson.security.csrf.CrumbFilter doFilter No valid crumb was included in request for /job/deploy_openstack/buildWithParameters by admin. Returning 403. Jul 01, 2019 9:04:49 AM WARNING hudson.util.Secret toString Use of toString() on hudson.util.Secret from sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method). Prefer getPlainText() or getEncryptedValue() depending your needs. see https://jenkins.io/redirect/hudson.util.Secret/ Jul 01, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Workspace clean-up Jul 01, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Workspace clean-up. 32 ms Jul 01, 2019 10:22:01 AM INFO org.jenkinsci.plugins.workflow.job.WorkflowRun finish deploy_openstack #1 completed: SUCCESS Jul 01, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Started telemetry collection Jul 01, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished telemetry collection. 2 ms Jul 01, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Fingerprint cleanup Jul 01, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Fingerprint cleanup. 1 ms Jul 01, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Started jobAnalytics Jul 01, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished jobAnalytics. 0 ms Jul 02, 2019 8:53:28 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Download metadata Jul 02, 2019 8:53:35 AM INFO hudson.model.UpdateSite updateData Obtained the latest update center data file for UpdateSource default Jul 02, 2019 8:53:35 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tasks.Maven.MavenInstaller Jul 02, 2019 8:53:35 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tasks.Ant.AntInstaller Jul 02, 2019 8:53:35 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.plugins.gradle.GradleInstaller Jul 02, 2019 8:53:36 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tools.JDKInstaller Jul 02, 2019 8:53:36 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Download metadata. 7,829 ms Jul 02, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Workspace clean-up Jul 02, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Workspace clean-up. 57 ms Jul 02, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Started telemetry collection Jul 02, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished telemetry collection. 1 ms Jul 02, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Fingerprint cleanup Jul 02, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Fingerprint cleanup. 0 ms Jul 02, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Started jobAnalytics Jul 02, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished jobAnalytics. 1 ms Jul 03, 2019 8:53:28 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Download metadata Jul 03, 2019 8:53:29 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tasks.Maven.MavenInstaller Jul 03, 2019 8:53:29 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tasks.Ant.AntInstaller Jul 03, 2019 8:53:29 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.plugins.gradle.GradleInstaller Jul 03, 2019 8:53:30 AM INFO hudson.model.DownloadService$Downloadable load Obtained the updated data file for hudson.tools.JDKInstaller Jul 03, 2019 8:53:30 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Download metadata. 1,774 ms Jul 03, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Workspace clean-up Jul 03, 2019 9:57:06 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Workspace clean-up. 43 ms Jul 03, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Started telemetry collection Jul 03, 2019 10:44:32 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished telemetry collection. 0 ms Jul 03, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Started Fingerprint cleanup Jul 03, 2019 11:03:27 AM INFO hudson.model.AsyncPeriodicWork$1 run Finished Fingerprint cleanup. 1 ms Jul 03, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Started jobAnalytics Jul 03, 2019 12:04:39 PM INFO hudson.model.AsyncPeriodicWork$1 run Finished jobAnalytics. 1 ms'; preg_match_all($re, $str, $matches, PREG_SET_ORDER, 0); // Print the entire match result var_dump($matches);

Please keep in mind that these code samples are automatically generated and are not guaranteed to work. If you find any syntax errors, feel free to submit a bug report. For a full regex reference for PHP, please visit: http://php.net/manual/en/ref.pcre.php