Something went wrong with java code...... | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Something went wrong with java code......

https://www.sololearn.com/post/405275/?ref=app

16th May 2020, 2:29 AM
V Chandu
V Chandu - avatar
2 Answers
+ 1
dot (or period) is a meta charecter in regex. It matches any single charecter. If you want to match exactly a dot (and not *any charecter*) you'll need to escape dot with backward slash. use "\\." instead of "."
16th May 2020, 2:49 AM
๐Ÿ‡ฎ๐Ÿ‡ณOmkar๐Ÿ•‰
๐Ÿ‡ฎ๐Ÿ‡ณOmkar๐Ÿ•‰ - avatar
+ 1
๐Ÿ‡ฎ๐Ÿ‡ณOmkar๐Ÿ•‰ thanks it's working...๐Ÿ˜‡
16th May 2020, 3:30 AM
V Chandu
V Chandu - avatar