spark split some special symbols

The problem with points is solved with string.split("[.]") .

The problem with vertical bars is solved with string.split("\\|").

The problem with asterisks is solved with string.split("\\*").

The problem with slashes is solved with sring.split("\\\\").

The problem with square brackets is solved with sring.split("\\[\\]").

 

Transfer: http://blog.csdn.net/a280966503/article/details/78822094

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326693704&siteId=291194637