Created
May 21, 2016 21:21
-
-
Save nancy-tar/69bb37057db750a219a36c847383c6eb to your computer and use it in GitHub Desktop.
C# regex to find words starting with certain symbol or character set
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\B-\S*(?=\b|\|\W|\s|\r|\n|$) - finding words starting with "-" symbol. You can change it to any. | |
For example: @"\B" +"your symbol"+ @"\S*(?=\b|\|\W|\s|\r|\n|$)" | |
Check c# regex:http://regexstorm.net/tester |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment