Hot answers tagged regex
First off, i can recommend Expresso to build and test regular expressions. Try this: <script?\w+((\s+\w+(\s*=\s*(?:"(?<value>.*?)"|'(?<value>.*?)'|[^'">\s]+))?)+\s*|\s*)/?>*</script> Some things to notice: You should run it with Ignore Case, to capture capital script tags. The named capture group "value" contains the value of ...
This is not possible as FAST supports FQL (FAST Query Language) and not regular expressions. Your best bet is to create an external processors which uses regexp to find social security numbers. If you find a match, assign the value "true" or similar to a crawled property. Then create a managed property of type bool which you map this crawled property. When ...
Looks like regex is not exported in the new column validation feature. References: http://www.sharepointdevwiki.com/display/sp2010/Site+Column+Validation Laura Rogers blogged about a way to pull it off in a Data View Web Part: http://www.sharepoint911.com/blogs/laura/Lists/Posts/Post.aspx?ID=83
check the below answers. will give you the idea how to achieve the target: Change name in ItemAdding event receiver or create a new Item also if you want to use WebDAV: http://simplyaprogrammer.com/2008/05/importing-files-into-sharepoint.html
You could probably first decode the string from html, then trim it and then reencode it to html, like this: var aString = yourTextBoxText; aString= SPEncode.HtmlDecode(aString); Since the texbox will always render <html><div> before the content you can not use .Trim(), instead use: aString = aString.Replace("<html> <div>", ""); ...
There is no way to do this. What you can do is detect security numbers at indexing time (with regex if you want) and add them to a managed property like "detectednumbers". Then you can query document that contains a number, or only document that contains a specific number. I'm afraid this is the only way to go.
Only top voted, non community-wiki answers of a minimum length are eligible