Skip to main content
Question

Find newline in textline

  • Dec 22, 2025 10:07 AM UTC
  • 2 replies
  • 125 views

hansk
Contributor
Forum|alt.badge.img+3

I try to find a text ending with a newline. Using the inbuilt regular expression editor (with the regex #! <DATASET\n) shows a result so the regex looks correct to me:

StringSearcher unfortunately doesn’t find the line: (see attached workbench)

Where are things going wrong?

2 replies

geomancer
Evangelist
Forum|alt.badge.img+69
  • Evangelist
  • Dec 22, 2025 11:26 AM UTC

Use $ instead of \n for ‘End of line’.

 


hansk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • Dec 23, 2025 9:26 AM UTC

Thanks a lot geomancer 👌!