
rovf
Veteran
Jun 6, 2011, 12:51 AM
Post #5 of 7
(12123 views)
|
Re: [miller] what does this reg exp mean?
[In reply to]
|
Can't Post
|
|
This would translate a string such as /foo/bar.txt/baz into /ZZ.txt/baz but would keep a string such as /foo/bar.txt unchanged. Since * is a greedy regexp operator, the 'g' modifier in the end of the regexp is, IMO, meaningless (which could be an indication that this regexp doesn't exactly do what the person who wrote it, had in mind).
|