Hello,
I am looping through Strings and I need to reserve just Strings that match a certain condition. I know how to do it using the standard String functions but I would like to do it in more elegant and short way using regular expressions.
The condition is this: If the String contains this Sub String "- Validation Reports" than get it's charcters from the begining until the first "-" you find.
Which regular expression will match this requirement?
I am looping through Strings and I need to reserve just Strings that match a certain condition. I know how to do it using the standard String functions but I would like to do it in more elegant and short way using regular expressions.
The condition is this: If the String contains this Sub String "- Validation Reports" than get it's charcters from the begining until the first "-" you find.
Which regular expression will match this requirement?