You are viewing limited content. For full access, please sign in.

Question

Question

Pattern Searching a Document (i.e. phone numbers or addresses)

asked on July 23, 2014

 

Is there a way to seach documents (or folders) for specific patterns? For example: I need to find all phone numbers within a document - can I generically search ###-###-#### and get results for all phone numbers in the document or folder?

0 0

Answer

SELECTED ANSWER
replied on July 23, 2014

Hi Ryan,

 

The following wildcards are allowed in searches:

In your case, you may try [0-9][0-9][0-9]-[0-9][0-9][0-9]-[0-9][0-9][0-9][0-9]

1 0

Replies

replied on July 23, 2014

Hi Ryan,

 

Yes, you can achieve this by using Regular Expressions. I'm going to assume that you are trying to find the detail that you need from the Text within the document in Laserfiche. I am also going to assume that you are going to do this using Workflow.

 

Simply use a Pattern Match Activity, together with a Retrieve Document Text activity to achieve the results you want. Here is a screenshot of how to use them in Workflow:

 

 

Then, inside your Pattern Match, configure it as follows:

 

 

As you can see, I have used this Regular expression: \d{3}-\d{3}-\d{4} that should match your requirements. Alternative expressions could probably be used to achieve the same results, I just thought of this one quickly.

 

I have also set this Pattern Match token to return all matches as a multi-value token, which means it will hold the results of one or more phone numbers.

 

If you need more help setting this up, let me know. 

 

Cheers

Sheldon

replied on July 23, 2014

Thank you Louis-Simon and Sheldon. I do not have workflows, but I tried the wildcard bracket search and it is working well for my search needs.

0 0
replied on July 23, 2014

Friendly reminder to mark the response that answered your question Ryan!  This will help others know that this issue was resolved and they can find a solution to the problem in this thread.  Thanks for contributing to the Answers site!

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.