sql server 2008 - Regex code how to filter all names that contain only numbers and end with .jpg and/or _number.jpg? -


How to filter all the names, which contain the numbers and end with .jpg and / or _number.jpg?

Background information: In SSIS 2008, I have a foreach loop that will store the file name in a variable for all JPG files. The intent configuration for files is currently: *. Jpg This will handle all JPG files.

What is the code, so it will only like names? :

  3417761506233.jpg 5414233177487.jpg 5414233177487_1.jpg 5414233177487_14.jpg   

but not like names:

  abc.jpg abc123.jpg def.png 456.png   

Numbers represent EAN codes the same way. I thought about this code:

\ d | _ | .jpg

But SSIS gives an error stating that there are no files available from the criteria in the files (name) folder.

Enter image details here

< div class = "post-text" itemprop = "text">

You can use a script task within the loop to regex filtering:  Enter image details here

Or you can use a free (third party) enumerator:  Enter image details here

Comments

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -