Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ^*$
- using System;
- using System.Text.RegularExpressions;
- namespace RegexFubar
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.WriteLine(Regex.IsMatch("127.0.0.1", "^*$"));
- Console.Read();
- }
- }
- }
- # echo -n 127.0.0.1 | perl -n -e 'print (($_ =~ m/(^.*$)/)[0]),"n";'
- -> 127.0.0.1
- # echo -n 127.0.0.1 | perl -n -e 'print (($_ =~ m/(^*$)/)[0]),"n";'
- ->
- Regex.Match("127.0.0.1", "^*1$")
- ^+$
Add Comment
Please, Sign In to add comment