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

Discussion

Posted to Government

Discussion

Regular Expressions Share

posted on November 13, 2014 Show version history

As much as I love a good RegEx challenge to keep my skills razor sharp, I thought it would be helpful to have a place where we can compile some useful ones. Who knows - maybe we can save someone time rather than re-inventing the wheel. If you have something to share, please do. 

If you could, please include a description of what you are sharing. If it would be helpful to explain a bit, please do. There is a broad swath of user skill levels which reference these groups. Also, please make the title of your RegEx in a bold font for easy searching later.

I will start things out with a little something:

Fiscal Year Validator:

FY14-15
10/01/2014 - 9/31/2015

^1[0-2]/\d\d/2014|0[1-9]/\d\d/2015

FY15-16
10/01/2015 - 9/31/2016

^1[0-2]/\d\d/2015|0[1-9]/\d\d/2016

This returns a value if a date is in the date range shown. You can increase the dates as necessary for future FYs. The expression determines which month is in the date. Depending on the year, it determines which FY it is.

 

Have anything that you can add for the good of your fellow Laserfiche user? 

6 0
replied on January 17, 2018

FYI, since the original post, Laserfiche has added a subject to search on for Regular Expressions & Pattern Matching:

https://answers.laserfiche.com/questions?topics=49&q=examples 

Hope this helps redirect someone

0 0
replied on January 17, 2018

I noticed that there is quite a bit of traffic on this post, but no one is leaving any RegEx examples. Do you have anything that might help out another user? Please share if you have the spare 3 minutes. Thanks!!

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

Sign in to reply to this post.