Slackbot
08/06/2023, 4:16 AMChristian Michael Tan
08/06/2023, 3:13 PM(?:X11Forwarding)[^\s]+
is to match strings with X11Forwarding and stops on a white space, proven working in regex tests,
but if I put it in a puppet code :
file_line { 'testing' :
ensure => present,
path => '/home/ccpro/test2',
line => 'X11Forwarding ayaw',
match => '(?:X11Forwarding)[^\s]+',
multiple => true,
replace_all_matches_not_matching_line => true,
}
the regex is matching the string, including the white spaces and strings after the white spaces :
Example : X11Forwarding Part2 Test
What could be the problem?Stephen
08/06/2023, 7:51 PMfile_line
matches a whole line, as the name impliesPhillip Schichtel
08/06/2023, 8:13 PMStephen
08/06/2023, 8:32 PMPhillip Schichtel
08/06/2023, 10:18 PMStephen
08/06/2023, 11:45 PMStephen
08/06/2023, 11:45 PMPhillip Schichtel
08/07/2023, 1:06 AMmatt
08/07/2023, 12:37 PMmatt
08/07/2023, 12:38 PMmatt
08/07/2023, 12:39 PMbastelfreak
08/07/2023, 12:44 PMbastelfreak
08/07/2023, 12:45 PMmatt
08/07/2023, 12:47 PMmatt
08/07/2023, 12:47 PMbastelfreak
08/07/2023, 12:47 PMmatt
08/07/2023, 12:48 PMbastelfreak
08/07/2023, 12:48 PMmatt
08/07/2023, 12:49 PMmatt
08/07/2023, 12:49 PMmatt
08/07/2023, 12:49 PMmatt
08/07/2023, 12:49 PMmatt
08/07/2023, 12:53 PMbastelfreak
08/07/2023, 12:53 PM-XX:ReservedCodeCacheSize=2G
in the JVM startup paramsmatt
08/07/2023, 12:53 PMbastelfreak
08/07/2023, 12:54 PMbastelfreak
08/07/2023, 12:54 PMmatt
08/07/2023, 12:54 PMmatt
08/07/2023, 12:54 PM