Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
 
					
				
		
Hi community,
is it possible to use/escape square brackets inside inline tables? I need to load regular expressions, some of which contain character classes: ^[a-z]
Double quotes don't work:
LOAD * INLINE [
name, regex
name1, "^[a-z]"
];
Assigning the regex to a variable wouldn't be the best solution but also doesn't work:
Set v = '^[a-z]';
LOAD * INLINE [
name, regex
name1, $(v)
];
Thanks,
Ivelin
 
					
				
		
 jonathandienst
		
			jonathandienst
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi
You can use quote characters to delimit an inline load when there is a square bracket inside the statement, like this:
LOAD * INLINE "
name, regex
name1, ^[a-z]
";
HTH
Jonathan
 SunilChauhan
		
			SunilChauhan
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		use in single quote.it will work
LOAD * INLINE [
name, regex
name1, '^[a-z]'
];
 
					
				
		
 jonathandienst
		
			jonathandienst
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi
You can use quote characters to delimit an inline load when there is a square bracket inside the statement, like this:
LOAD * INLINE "
name, regex
name1, ^[a-z]
";
HTH
Jonathan
 its_anandrjs
		
			its_anandrjs
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Hi,
You can use as ASCII characters for this also with Chr function which returns the string of given value in chr
Let vChar = Chr(94)&Chr(91)&'a-z'&Chr(93);
LOAD * INLINE [
name, rege,
name1, '$(vChar)'
];
Regards
Anand
 
					
				
		
Thanks Jonathan! So double quotes and square brackets can be used interchangeably?
 
					
				
		
 kevinpintokpa
		
			kevinpintokpa
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		Thanks for the suggestion which does work.
However, if you click on the small hammer icon to bring up the GUI editor, it messes up the table thereafter.
