|
-
Jan 29th, 2010, 12:58 PM
#1
Thread Starter
New Member
[RESOLVED] Regexp
Hello,
This is the code:
String ": this the first "
String "this is 7777 7777 7777 7777"
If Not aline.StartsWith(":") Then
Dim pattern2 As String = "[0-9]{4}\s[0-9]{4}\s[0-9]{4}\s[0-9]{4}"
Dim rg2 As Regex = New Regex(pattern2)
If Regex.IsMatch(aline, pattern2) Then
aline = Regex.Replace(aline, pattern2, "REPLACE")
End If
End If
wr.WriteLine(aline)
What is the regex to delete the space between: 7777 7777 7777 7777
Thank you in advance for your reply.
Leo
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|