Regular Expression TCL using procedure

Posted by user329763 on Stack Overflow See other posts from Stack Overflow or by user329763
Published on 2010-04-30T13:12:36Z Indexed on 2010/04/30 13:17 UTC
Read the original article Hit count: 320

Filed under:

Hey everybody,

I am a novice TCL programmer.Here I go My 1st post with stackoverflow forum. I would like to write a regular expression that matches any & only the strings starts with character A and ends with B. Whatever the characters coming inbetween should be displayed. For instance AXIOMB as an input from the user which starts with A & end with character B. Here is my try regexp { (^A([C-Z]+)B$)} Thank you

© Stack Overflow or respective owner

Related posts about tcl