The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] How to use '[' as split pattern in Split Operator
I have data that comes from LimeSurey looking like: stuff [other stuff] so in my table I have a field I want to split
Example
field1
stuff [other stuff]
stuff [other stuff]
stuff [other stuff]
Trying to get
field1 field2
stuff other stuff]
stuff other stuff]
stuff other stuff]
I am using the split operator were my split pattern is the open square bracket [
The operator will not allow this as a split pattern
I have:
attribute filter type = single
attribute = field1
split pattern = [
I get Error:
The regular expression [ is not well defined: Unclosed character class near index [
Is thier anyway to force the split operator to use [ as a split pattern?
Thanks
Example
field1
stuff [other stuff]
stuff [other stuff]
stuff [other stuff]
Trying to get
field1 field2
stuff other stuff]
stuff other stuff]
stuff other stuff]
I am using the split operator were my split pattern is the open square bracket [
The operator will not allow this as a split pattern
I have:
attribute filter type = single
attribute = field1
split pattern = [
I get Error:
The regular expression [ is not well defined: Unclosed character class near index [
Is thier anyway to force the split operator to use [ as a split pattern?
Thanks
Tagged:
0
Answers
[ is a metacharacter in a regex, and escaping is the standard way to use such a char in a search. I didn't try, however.
HTH
fps
Many thanks!