I am trying to read the properties file with keys including spaces.
For ex:
Parent File name = 'Mother.Older'
Child File name = 'Daughter.Younger'
I tried the regular expression ^.*= and it successfully reads the keys but it also reading the = sign.
Is there any better regular expression which reads the keys only until the = sign.
Thanks in Advance
Try
^[^=]*. The^inside the[]means not, so[^=]matches any character except=.