[ https://issues.apache.org/jira/browse/FLINK-10281?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated FLINK-10281: ----------------------------------- Labels: pull-request-available (was: ) > Table function parse regular expression contains backslash failed > ----------------------------------------------------------------- > > Key: FLINK-10281 > URL: https://issues.apache.org/jira/browse/FLINK-10281 > Project: Flink > Issue Type: Bug > Components: Table API & SQL > Reporter: vinoyang > Assignee: vinoyang > Priority: Major > Labels: pull-request-available > > for example, regular expression matches text ("\w") or number ("\d") : > {code:java} > testAllApis( > "foothebar".regexExtract("foo([\\w]+)", 1), //OK, the method got > 'foo([\w]+)' > "'foothebar'.regexExtract('foo([\\\\w]+)', 1)", //failed, the method got > 'foo([\\w]+)' returns "", but if pass 'foo([\\w]+)' would get compile error. > "REGEX_EXTRACT('foothebar', 'foo([\\\\w]+)', 1)", //OK, the method got > 'foo([\w]+)' but must pass four '\' > "thebar" > ) > {code} > the "similar to" function has the same issue. > -- This message was sent by Atlassian JIRA (v7.6.3#76005)