c# regular expression help

Hi,

Please help me to write 2 regular expressions:

text= Z1cvgZ55Z1z89bavc

1) I want to extract all Z or z with numbers like output should be:
Z1
Z55
Z1
z89
Starting characters is z or Z.

2) extract all characters which do not contain Z or z with numbers too. The output should be like
cvgbavc

They are the remaining of above expression.

Please help me or guide me.

Thanks
josephm67Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
Dan CraciunConnect With a Mentor IT ConsultantCommented:
1. @"([Zz]\d*)"
2. @"([^Zz\d])"

HTH,
Dan
0
 
josephm67Author Commented:
thanks
0
 
Dan CraciunIT ConsultantCommented:
Glad I could help!
0
All Courses

From novice to tech pro — start learning today.