This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
HotlinkBlocker (Forum Locked Forum Locked)
 Helicon Tech : HotlinkBlocker
Subject Topic: regex - real NIGHTMARE (Topic Closed Topic Closed)
Author
Message |
s2001
Newbie


Joined: 21 November 2002
Posts: 27
Posted: 13 January 2006 at 8:03am  

Hello,

You use regex expressions in Windows product - it's strange because it have UNIX/Linux nature...
It's very inconvenient for non-UNIX guys to construct expressions with regex - is there simple doc which translate Window/DOS terms to regex?

For instance I need to protect all files *.mpg and *.avi - why I can't use just *.mpg | *.avi? According to help I have to use @.*\.(mpg|avi) ? If yes, please describe in simple words why we use .*\.( here

Thank you!

Back to Top
 
s2001
Newbie


Joined: 21 November 2002
Posts: 27
Posted: 13 January 2006 at 8:34am  

One more question please - may I use dir name like /*/*/test ?
I hope * mean any symbols?

Sorry, It's very hard to use documentstion

Thank you!

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 13 January 2006 at 2:33pm  

You can use wildcards as well as a regular expressions.
You can use *.mpg pattern to protect this type of files.
You will need to add two separate protection entries for each file type.
Regular expressions was added only to bring more power to the experienced users. Here is a regular expression syntax reference: http://www.isapirewrite.com/docs/#RegexSynt

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
s2001
Newbie


Joined: 21 November 2002
Posts: 27
Posted: 13 January 2006 at 4:47pm  

Thank you, Yaroslav.
Sorry, it's hard to understand this reference...

Could you please tell me how can I protect all HTM in /members folder? 1) without subfolders and 2) with subfolders

Thanks

Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 13 January 2006 at 5:21pm  

It is simpler for me to write it in regular expressions:
1) @/members/[^/]+\.htm
2) @/members/.*\.htm

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 
s2001
Newbie


Joined: 21 November 2002
Posts: 27
Posted: 14 January 2006 at 4:03pm  

Yaroslav, thanks
could you please clarify .* in case 2?

Why you use dot?
"The dot character "." matches any single character except null character and newline character."

And what is *? If it's any chars (as in Windows), why we need in dot?

Thank you

Quote: Originally posted by Yaroslav on 13 January 2006


It is simpler for me to write it in regular expressions:
1) @/members/[^/]+\.htm
2) @/members/.*\.htm


Back to Top
 
Yaroslav
Admin Group


Joined: 15 August 2002
Posts: 6520
Posted: 15 January 2006 at 2:45am  

In regex * means repeat 0 or more times. .* means any string.

__________________
Yaroslav Govorunov,
Helicon Tech
Back to Top Visit Yaroslav's Homepage
 

Sorry, you can NOT post a reply.
This forum has been locked by a forum administrator.

Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum