Regex to match

Post variable and regex related tips, questions.

Regex to match

Postby Jamie » Tue Jan 27, 2015 6:56 am

User support request:
Can you please help me to filter this filename?
INV_2023423_053407_GRD_16_ACT_(HE).pdf
This one seems unable to match it..
REGEXF=INV_[0-9]{1,}_[0-9]{1,}_GRD_[0-9]{1,}_ACT_*HE*.pdf
Jamie
Site Admin
 
Posts: 115
Joined: Mon Aug 14, 2006 8:16 am

Re: Regex to match

Postby Jamie » Tue Jan 27, 2015 6:57 am

User figured it out himself:
I got it.. sorry…should like this..
REGEXF=INV_[0-9]{1,}_[0-9]{1,}_GRD_[0-9]{1,}_ACT_[^\w]HE[^\w].pdf
Jamie
Site Admin
 
Posts: 115
Joined: Mon Aug 14, 2006 8:16 am


Return to Variables and Regular Expressions

Who is online

Users browsing this forum: No registered users and 3 guests

cron