I know there has to be a way to do this but I'm having trouble figuring out how to do so. I would like to create a list of feature classes to perform operations on however, I want to have the list contain feature classes which have 2 separate and distinct file name identifiers. The code would look something like:
FCS = arcpy.ListFeatureClasses("X_*" OR "*_Y")
I know OR is incorrect however, is there some way to do this without having to re write code to work with the second wildcard. Thanks for helping gout, i know there is a selection method in the Select By Attributes which allows for multiple wildcard use using the OR statement.
ListFeatureClasses()
twice (which could potentially be too slow for large directories, it's best to pass no wildcard and then just filter through the result after.