Kyle J Strand

Results 209 comments of Kyle J Strand

Java does exactly the right thing: Pattern p = Pattern.compile("^$", Pattern.MULTILINE); Matcher m = p.matcher("1\r\r\n2\r\n\r\n3"); while (m.find()) { System.out.println("match at " + m.start() + ": " + m.group()); } This...

(To be more precise about what I mean by "the right thing": Java's behavior is, as far as I can tell, exactly equivalent to the behavior we'd get from implementing...

I'm not sure what you mean by "Unicode does not define control characters", since it certainly specifies control character definitions (inheriting some from ASCII and introducing some others, such as...

Now that control-flow is available in `const fn`, is it possible that compile-time regex compilation could be implemented just by applying `const` throughout the compiler where appropriate?

Apologies for not noticing that sentence before posting!

@Eeemil Are you trying to use Kubernetes _without_ your custom script in some cases? If not, why does it matter that the `current-context` in the main `.kube/config` file gets modified?...

Also, would you mind sharing your script? It sounds pretty simple, but it would be nice not to have to write it myself.

Fair enough; I was only using ssh accidentally. Just thought it was worth noting, especially in case someone else tries this and sees the same failure!

I'm not sure that would have worked in my case, because I had a git config setting to replace https calls with git@ (for some reason that I don't remember)....