$this_proc = $0 # Filename of code (as invoked) =~ # "Perform" Regular Expression /^.+\/ # Matches everything until the last / (.+)$/ # Capture filename (in $1) ? # If Regex was successful $1 # Return the filename : # Otherwise (Else) $0; # Return the filename as invoked
In reply to Re: Regular expression problemette
by eibwen
in thread Regular expression problemette
by spaceship
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |