java - How to set false this regex? -
§0§0((?:§[1-9a-d])+)§e§f
will work if string contains, example, §0§0§e§f or §0§0§1§e§f or §0§0§1§b§e§f or etc., need check if example false. tried not work:
?!§0§0((?:§[1-9a-d])+)§e§f [^(§0§0((?:§[1-9a-d])+)§e§f)] !§0§0((?:§[1-9a-d])+)§e§f (^§0§0((?:§[1-9a-d])+)§e§f)
and else.
you can use regex multiline
option check lines do not contain previous pattern:
^(?!.*§0§0(?:(?:§[1-9a-d])*)§e§f).*$
it won't match following lines:
§0§0§e§f §0§0§e§f §0§0§1§e§f §0§0§1§b§e§f
it match following lines:
string string more strings
Comments
Post a Comment