Quantcast
Channel: SharePoint 2010 - Setup, Upgrade, Administration and Operations forum
Viewing all articles
Browse latest Browse all 12728

Regular Expression Issue

$
0
0

Hi,

We are trying to use a regular expression in a SharePoint 2010 workflow, that will check a document name to see if it is alphanumeric and to deal with any eventuality of the file extension containing numbers too.

^.*[a-zA-Z]+.*\.[a-zA-Z0-9]{2,}$

Basically if any file comes in that is only numbers we want to know about it so we can take some action on it.

The above seems to run through the .NET regex testers ok, but doesn't action in our workflow for some reason. The only thing I can think of is perhaps the Name field doesn't include a documents extension, can someone clear this up, or spot our mistake with the expression. I assume that SharePoint uses the .NET definitions.

Thanks


Viewing all articles
Browse latest Browse all 12728

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>