You are here

Argument MAX with REGex

2 posts / 0 new
Last post
janKO
Offline
Donator
Joined: 6 years
Last seen: 1 day
Argument MAX with REGex

How to limit actors number to 7 in this example:

index_actor.scrub {regex||\{"FirstName":"([^"]*","LastName":"[^"]*)","Title":"Actor"\}||}

Normally this work but not in regex:

index_actor.scrub {regex(max=7)||\{"FirstName":"([^"]*","LastName":"[^"]*)","Title":"Actor"\}||}

 

I found this for regex:

{7} Exactly 7
{5,} At least 5
{2,7} 2 to 7

 

i try several times but no success :-(

Can please somebody help :-)

janKO
Offline
Donator
Joined: 6 years
Last seen: 1 day

Excellent, thanks @Blackbear199 yes

To got 7 actors i just change 6 to 7 ...

Log in or register to post comments

Brought to you by Jan van Straaten

Program Development - Jan van Straaten ------- Web design - Francis De Paemeleere
Supported by: servercare.nl