Hi,
I'm trying to write a regex expression to test if the word "all" is somewhere in a comma delimited list. I'm not sure if I should use this:
or this:
Assuming you only have 1 line in a string, is there a difference between using '^' and '/A' or '$' and '/z'?
Also, what's the difference between /z and /Z?
I'm trying to write a regex expression to test if the word "all" is somewhere in a comma delimited list. I'm not sure if I should use this:
Code:
if ( sValue.matches( "(/A|,)all(,|/z)" ) == false )
Code:
if ( sValue.matches( "(^|,)all(,|$)" ) == false )
Assuming you only have 1 line in a string, is there a difference between using '^' and '/A' or '$' and '/z'?
Also, what's the difference between /z and /Z?