A regular expression (sometimes abbreviated to "regex") is a way for a computer user or programmer to express how a computer program should look for a specified pattern in text and then what the program is to do when each pattern match is found.

learn more… | top users | synonyms

1
vote
2answers
63 views

RegEx to validate and replace invalid file name characters from a custom web part file upload control

Scenario: I have a fileupload control in my custom webpart that attaches the uploaded files to the list item. The attachment code is given below: private void UploadAttachments(Helper ...
1
vote
1answer
34 views

Workflow Regular expression fails to check if date is empty

I am trying to create a document on a list if a date list field is set. So I have a workflow that executes when a list item is changed. In the workflow, I have set a workflow variable X to mydate ...
0
votes
1answer
64 views

Regular expression in Search Sharepoint 2013

I' having problems with using a regular expression in Sharepoint 2013 Search. I insert it into a crawl rule and checked Use regular expression syntax for matching this rule. I validated my regex on ...
0
votes
0answers
129 views

SharePoint 2013 Crawl Rule Exclude not matching RegEx

This is a first post on StackExchange; I just seem to be having a confused moment. The platform is SharePoint 2013 Enterprise Farm on-premise I have an Include crawl rule using Regular Expression ...
2
votes
0answers
77 views

XSLT, regex and RenditionID

I'm sort of new in XSLT, and i need some clues, if you're willing to give me some... What i want: In a CQWP, i want to display items' images, with a certain rendition ID. But, when retrieving the ...
0
votes
2answers
102 views

What do these out of the box Regular Expressions in Query Rules mean?

I would like some help to figure out what these Regular Expression rules in search Query means, or could anyone link me resources related to Regular Expressions for Sharepoint 2013 Search? 1) ...
0
votes
1answer
195 views

CAML query regex

is there a way to perform regex query with CAML? I have a string field (Display) composed by Name and Surname. I have a single search input. I wish to have these results *Display* match UserInput ...
0
votes
0answers
48 views

query rule sharepoint search

d+)\s?([eExXtT]*\.?\s?(?<extension>\d+))?(")?)$)|(^(?![tT]|[eE](?![xX][tT])|[xX][a-zA-Z]+)[eExXtT]+\.?\s?(?<extension>\d+)?$)|(^(?=(\+|00|0)(\d{4,-})$)(")?(\+|00|0)(?<area>\d+)(")?$) ...
0
votes
1answer
148 views

Find/Replace with regular expressions in Sharepoint Designer

Using Sharepoint Designer 2007. I have the following block of code taken from a C# app: sbuilder.Append("x"); sbuilder.Append("y"); sbuilder.Append("z"); and so on. I'm translating it to ...
1
vote
1answer
871 views

Renaming uploaded files - removing illegal characters

I must admit that I am totally unexperienced with developing anything to SP, but my problem sounds pretty simple - I need to manage some kind of regex command to rename any files uploaded to SP. The ...
0
votes
2answers
1k views

Infopath Regex for 7 - 15 characters with atleast one digit and character

I am trying to create a textbox in infoth form with following creteria: 1.) Length should be 7-15 characters 2.) It should contain at least one digit 3.) It should contain at least one character 4.) ...
2
votes
1answer
903 views

SPD Workflows and RegEx

Is it possible to use a regular expression in an SPD workflow? I am trying to use the for-each hack to take a list of semicolon delimited values and create a new form for each of them, but I can't ...
0
votes
2answers
1k views

Remove Leading and Trailing Spaces from Rich Text Box using C# code

I am using a MultiLine Rich Text box in my custom list, now I want to remove leading and trailing spaces in the MultiLine Rich text box's input. I have written an List item event receiver with ...
3
votes
2answers
614 views

Regex Query Against FAST Search 2010

I'm looking for a way to do searches with FAST Search Server 2010 based on Regular Expressions. For instance, I'd like to be able to use: ^\d{3}-\d{2}-\d{4}$ And have it return any content ...
0
votes
1answer
335 views

Regular expression for validating a SharePoint site address

I am trying validate an input from a text box and I want to make sure it is a well formed SharePoint address, e.g. http://site/ Does anyone have a regular expression that can do this or another method ...
1
vote
1answer
4k views

How can use Regular expression for Column Validation in Sharepoint 2010?

Is there a way that i can use the newly introduced "column validation" in Sharepoint 2010 Lists to validate that the value conforms to a regular expression? For example: if i create a column for ...
1
vote
1answer
2k views

Regex to Parse Script Tags

OK, this isn't really a SharePoint question, per se, but I need some regex help for my jQuery Library for SharePoint Web Services , which is certainly for SharePoint! I need to be able to parse out ...