Tag Info

Hot answers tagged


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


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