Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Function getStations(file_name As String)
- 'Use Regular Expressiosn for grabbing the input and automatically filter it
- Dim regEx As New RegExp
- With regEx
- .Global = True
- .MultiLine = True
- .IgnoreCase = True
- 'This matches the pattern: e.g. 06+900@07+230
- .Pattern = "[0-9]*\+[0-9]{3}\@[0-9]*\+[0-9]{3}"
- End With
- If regEx.Test(file_name) Then
- getStations = regEx.Execute(file_name)(0)
- Else
- getStations = "Hay un problema con el nombre. Por favor, arréglalo"
- End If
- End Function
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement