First, what's the field, text field? If it's empty than the backend java value will be null. It doesn't store empty strings.
If it's just a single space " " then you don't want to use * as it means 0 or more occurrences, so it will always be a match regardless of the value.
Can you try "^\s+", where + means 1 or more?
According to https://www.baeldung.com/java-regex-s-splus the java syntax would be "\\s+" (which makes sense since it's in double quotes), not sure, one or two backslashes one of them should work though I assume. Probably the double backslash.
Join the largest European gathering of the Atlassian Community and reimagine what’s possible when great teams and transformative technology come together. Plus, grab your Super Fan ticket now and save over €1,000 on your pass before prices rise on 3 June.
Register nowOnline forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.