The regex you need depends on the prompt. The following expression should however work in most cases:
$prompt =~ /[$%#>] $/;
Michele.
In reply to Re: reg ex and the prompt
by arthas
in thread reg ex and the prompt
by jcpunk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |