Split() doesn't!

Why does this split() return 0 rows?

The forum software autiomatically capitalises the first word of the question title. Who knew?

Split on \\. instead. It's a regex.

(one backslash or two? who knows)

4 Likes

Two, one backslash only increases the result to 1 row.

Nope:

Can anyone show it to me working?

¯\_(ツ)_/¯ works on my machine(8.1.44) /s

3 Likes

I concur, this works on 8.1.48 too!

1 Like

Character encoding funkiness?

Hmph! I hit OK and reopened it and it worked!

Thanks guys.

'[.] also works because the dot is inside a character class (if anyone understands that). 2 ways to Split String with Dot (.) in Java using Regular Expression? Examples

I'll suggest a regex example to docs@inductiveautomation.com.

4 Likes


works for me

Can you please post code so that we can copy it, not a screenshot? :winking_face_with_tongue:

Sorry I couldn't help myself! haha

7 Likes

Sometimes the bots don't follow their own advice. They're only bots you know! LOL

3 Likes