The first one does not match as the OP contains two spaces at least between 'cd' and 'ghi'.
Also what would he expect for 'cd cd ghi'?
In reply to Re^5: Regex problem - (non)greedy?
by hdb
in thread Regex problem - (non)greedy?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |