-
Notifications
You must be signed in to change notification settings - Fork 81
StringTagger
celmoussaoui edited this page Oct 27, 2019
·
1 revision
Example:
StringTagger tag=new StringTagger("cmd=lookup names='Daniel Ockeloen, Rico Jansen'",' ','=',',','\'','(',')');
System.out.println("toString:"+tag.toString());
System.out.println("cmd:"+tag.Value("cmd"));
System.out.println("names: "+tag.Values("names"));
Result:
toString:[]
cmd:lookup
names: [Daniel Ockeloen, Rico Jansen]
tag=new StringTagger("cmd=(a,b),c");
System.out.println("toString:"+tag.toString());
System.out.println("cmd:"+tag.Values("cmd"));
Result:
toString:[]
cmd:[(a,b), c]