| Author | 
		  Message
		 | 
		
		  | ldtluxury | 
		  
		    
			  
				 Posted: Tue Jun 09, 2015 6:35 am    Post subject: File exclusion pattern problem | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 22 Oct 2014 Posts: 29
  
  | 
		  
		    
			  
				Hello everyone!
 
 
Could you please help with this situation.
 
 
I want to exclude files with names that begin with $ symbol.
 
I wrote in "File exclusion pattern" field (FileInput node) this pattern: $*
 
And it didn't work. The file was processed.
 
 
Why? Does broker has problems with $ symbol? Maybe it's a special char?
 
 
Thanks a lot. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Tue Jun 09, 2015 6:41 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Did you try "\$*" as an exclusion pattern?   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ldtluxury | 
		  
		    
			  
				 Posted: Wed Jun 10, 2015 11:19 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 22 Oct 2014 Posts: 29
  
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	Did you try "\$*" as an exclusion pattern?   | 
   
 
 
 
Yes, it says: 
 
File exclusion pattern: The filename contains either file separator "\" or "/" and is invalid | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Thu Jun 11, 2015 4:38 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				
   
	| ldtluxury wrote: | 
   
  
	
   
	| fjb_saper wrote: | 
   
  
	Did you try "\$*" as an exclusion pattern?   | 
   
 
 
 
Yes, it says: 
 
File exclusion pattern: The filename contains either file separator "\" or "/" and is invalid | 
   
 
 
How about "\\$*" or "\\\$*" ?
 
If you are looking at a regular expression it should really be "\$.*" or 
 
back slash dollar dot star ...   _________________ MQ & Broker admin | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | ldtluxury | 
		  
		    
			  
				 Posted: Thu Jun 11, 2015 6:05 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Apprentice
 
 Joined: 22 Oct 2014 Posts: 29
  
  | 
		  
		    
			  
				
   
	| fjb_saper wrote: | 
   
  
	
   
	| ldtluxury wrote: | 
   
  
	
   
	| fjb_saper wrote: | 
   
  
	Did you try "\$*" as an exclusion pattern?   | 
   
 
 
 
Yes, it says: 
 
File exclusion pattern: The filename contains either file separator "\" or "/" and is invalid | 
   
 
 
How about "\\$*" or "\\\$*" ?
 
If you are looking at a regular expression it should really be "\$.*" or 
 
back slash dollar dot star ...   | 
   
 
 
 
No.   It still says that I can't use backslash. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | Vitor | 
		  
		    
			  
				 Posted: Thu Jun 11, 2015 6:17 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA 
  | 
		  
		    
			  
				
   
	| ldtluxury wrote: | 
   
  
	No.   It still says that I can't use backslash. | 
   
 
 
 
That's in line with what it says here, where it also says:
 
 
   
	| Quote: | 
   
  
	| You cannot specify file names that contain the following characters: the asterisk ('*'), the question mark ('?'), or file name separator characters ('/' and' \'). | 
   
 
 
 
Nothing there about a $ I can see. I'd raise a PMR if I was you, as I too would suspect whatever's parsing the pattern is inappropriately reacting to the $ character. Or at least reacting in an undocumented fashion. _________________ Honesty is the best policy.
 
Insanity is the best defence. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mqjeff | 
		  
		    
			  
				 Posted: Thu Jun 11, 2015 6:25 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Grand Master
 
 Joined: 25 Jun 2008 Posts: 17447
  
  | 
		  
		    
			  
				Ok.  This says that you can't use '/','\','?','*'.  
 
 
It's not clear why '$' doesn't work.  Perhaps it's because '*' matches 0 or more characters.  Try '$?*'.
 
 
Also, what was the file name that got processed incorrectly?  Is there any way that the filename matched both patterns?  (that *shouldn't* cause the file to be processed, but it *might*... ) | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |