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

Question

Question

How to search for subfolders that starts with 2 letters and 4 numbers

asked on February 26, 2015

How to search for subfolders that starts with 2 letters and 4 numbers

I´m usisng the the query sintax bellow:

{LF:LOOKIN="\folder path\"} & {LF:ParentName={"*Active"} & {LF:Name="<<????>>", Type="F"}

What I have to put in the LF:Name ? 

0 0

Replies

replied on February 26, 2015 Show version history

Try {LF:Name="[a-z][a-z][0-9][0-9][0-9][0-9]*",Type=F}

2 0
replied on February 26, 2015

Haven't actually tried this solution, but I'm thinking something like

 

[abcdefghijklmnopqrstuvwxyz][[abcdefghijklmnopqrstuvwxyz][1234567890][1234567890][1234567890][1234567890]

 

should do the trick.

0 0
replied on February 26, 2015

you can also simplify Michael's regex by: [A-Za-z]{2}[0-9]{4} which will also allow for uppercase letters (if there are any)

 

So it would be {LF:Name="[A-Za-z]{2}[0-9]{4}", Type=F}

replied on February 26, 2015

The search language doesn't support regular expressions, so the above won't work. Also, searches are case-insensitive by default.

You are not allowed to follow up in this post.

Sign in to reply to this post.