[ create a new paste ] login | about

Link: http://codepad.org/l8fCZjYX    [ raw code | output | fork ]

Tcl, pasted on Apr 9:
1
2
3
4
set myString {A/B/C/P/E}
regexp -- {(.*)/\S+} $myString -> match
puts $match
# => A/B/C/P


Output:
1
A/B/C/P


Create a new paste based on this one


Comments: