Path: utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!usc!cs.utexas.edu!uunet!mcsun!hp4nl!botter!star.cs.vu.nl!maart From: maart@cs.vu.nl (Maarten Litmaath) Newsgroups: gnu.bash.bug Subject: regular expressions Message-ID: <3073@solo4.cs.vu.nl> Date: 25 Aug 89 16:12:23 GMT Distribution: gnu Organization: V.U. Informatica, Amsterdam, the Netherlands Lines: 24 I've always wanted to be able to do something like the following: case $domain in \(.*\)\.\(.*\)\.edu) department=\1 university=\2 *) # ... esac instead of case $domain in *.*.edu) department=`echo "$domain" | sed 's/\([^.]*\).*/\1/'` university=`echo "$domain" | sed 's/.*\([^.]*\).edu/\1/'` *) # ... esac You get the idea. Is this possible with bash? -- "rot H - dD/dt = J, div D = rho, div B = 0, |Maarten Litmaath @ VU Amsterdam: rot E + dB/dt = 0" and there was 7-UP Light.|maart@cs.vu.nl, mcvax!botter!maart