Sharepoint Forum

 
Home » Forum » Sharepoint       Ask a questionRSS Feeds

REGEX in workflow issue

  Asked By: Seth Davis         Date: Jan 11, 2010      Category: Sharepoint      Views: 420
 

I am trying to run a regex validation on the filename of a document uploaded to
a library on my sharepoint server. I've tried testing the validation on both
the NAME fields with no luck. My regex is as follows:

[a-zA-Z]_+[a-zA-Z]_[.]([a-zA-Z0-9]{4}|[a-zA-Z0-9]{3})

Valid filenames would have two underscores and a 3-4 character extension:

test_filename_.docx (valid)
test_filename_.xls (valid)
testfilename.xlsx (invalid)


Do you know someone who can help? Share a link to this thread on twitter, or facebook.

Tagged:        

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on REGEX in workflow issue Or get search suggestion and latest updates.


Your Answer
  • Answer should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].