Running your sample code I get:
folderpath: /aboutiso/corp_gov/bod/agendas/2010/
Your regex doesn't match the $folder_path string at all because the regex requires a \w character at the end but the $folder_path string ends with a /. No match so no replacement so the string remains unchanged.
In reply to Re: Regex output incorrect
by GrandFather
in thread Regex output incorrect
by begood321
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |