Do you not need double backslashes before the curly braces?


On 22 Feb 2013, at 14:19, nes_welsh <welsh...@visa.com> wrote:

> Hi All,
>
> I am trying to parse the build log to extract some information which is
> output in it.  I have the following situation:
>
> build log stuff....
> {
> table stuff
> table stuff
> table stuff
> }
>
> I want to get the information in the {}.  I am using the following regex
>
> ${BUILD_LOG_REGEX, regex="/\{(.*?)\}/m"}
>
> but its returning:
> [[ Exception while replacing BUILD_LOG_REGEX. Please report this as a bug.
> ]]
> {{ java.util.regex.PatternSyntaxException: Illegal repetition near index 0
> /{(.*?)}/m
> ^ }}
>
> Any Ideas?
>
> Cheers,
> Neil
>
>
>
> --
> View this message in context: 
> http://jenkins.361315.n4.nabble.com/BUILD-LOG-REGEX-and-Email-tp4656346.html
> Sent from the Jenkins users mailing list archive at Nabble.com.
>
> --
> You received this message because you are subscribed to the Google Groups 
> "Jenkins Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to jenkinsci-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to