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

Question

Question

Regular Expression in Workflow

asked on November 28, 2017 Show version history

Hi all,

I want to know what does this regular expression stands for:

%(ForEachDocument_Current Value#<.+\s___\s(\d+)\s___\s.+>#)

I have test it as follows: New Document http://servername/laserfiche/index.aspx?db=RepName#id=76;view=metadata and nothing is being shown in the Result value.

0 0

Replies

replied on November 28, 2017 Show version history

 

Try using a regex analyser link the following (fixed)

1 0
replied on November 28, 2017 Show version history

This regexp is saying extract and return the numeric text that is surrounded by 
any text ___ NUMERIC ___  any text
If the Current value =  "abc ___ 1234 ___ abc" the result would be 1234.

.+\s___\s(\d+)\s___\s.+
any text, a space, 3 underscores, a space, a number, a space, 3 underscores, a space and then text

If you matched the following text your results would be:
abc ___ 1234 ___ abc  = 1234
abc ___ 1234 ___   No match since there is no text following the underscores
abc ___ 1234 ___ abc ___ 5678 ___ abc = 5678   ( it would match the last valid number )
abc ___ 1234 ___ abc ___ 5678 ___  = 1234 ( there is no text after the 5678 ___ )

What exactly are you trying to do?
Andrew

 

1 0
replied on November 28, 2017

The link you provided does not exist

 

0 0
replied on November 28, 2017

Sorry about that. Should be good now

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

Sign in to reply to this post.