![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ksh - test if string contains alphanumeric... | tugger | Shell Programming and Scripting | 3 | 10-16-2007 04:23 AM |
| AlphaNumeric String Operations | lakshmikanth | UNIX for Dummies Questions & Answers | 3 | 01-05-2007 06:55 AM |
| Wanted to eliminate numeric part from a filename | Sona | UNIX for Dummies Questions & Answers | 8 | 07-20-2006 02:49 PM |
| Convert string to numeric | kflee2000 | Shell Programming and Scripting | 3 | 11-19-2003 11:21 PM |
| matching alphanumeric string | sskb | Shell Programming and Scripting | 4 | 12-12-2001 10:48 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
With Regex Spliting the string into Alphanumeric and Numeric part
Hi there
With shell script I'm trying to split the string into two parts. One is alphanumeric part, the other one is a numeric part. Code:
dummy_postcode_1 = 'SL1' --> res_alpha = 'SL' and res_numeric = '1' dummy_postcode_2 = 'S053' --> res_alpha = 'S' and res_numeric = '053' dummy_postcode_3 = 'SO5R3' --> res_alpha = 'SO5R' and res_numeric = '3' dummy_postcode_4 = 'SO53R' --> res_alpha = 'SO53R' and res_numeric = '' dummy_postcode_5 = '783652' --> res_alpha = '' and res_numeric = '783652' Could you advise me how i can split them into two parts by using regex? Thanks in advance, Ozgur |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|