-1

we can use .* to match a line from regex. but I need something else similar to this. because intellij grammar kit doesn't support for .*

2
  • Did you enable regex search? Or does the place where you use the pattern support regex at all? You mean, you are working with this plugin? Please add more details. Commented Dec 23, 2020 at 13:32
  • 1
    @WiktorStribiżew IntelliJ certainly supports full regex searching of source code. Commented Dec 23, 2020 at 13:34

2 Answers 2

0

Use [^\n]* to match a whole line without using . character

0

You need to enable Regex in search. Then you can search new line using: \n

Search box picture

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.