-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 .*

  • 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](https://github.com/JetBrains/Grammar-Kit)? Please add more details. – Wiktor Stribiżew Dec 23 '20 at 13:32
  • 1
    @WiktorStribiżew IntelliJ certainly supports full regex searching of source code. – Tim Biegeleisen Dec 23 '20 at 13:34

2 Answers2

0

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

Search box picture

s0xzwasd
  • 2,895
  • 3
  • 17
  • 26
anel
  • 3
  • 1
0

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

Mehdi Khademloo
  • 2,754
  • 2
  • 20
  • 40