Skip to main content
Question

Find newline in textline

  • December 22, 2025
  • 2 replies
  • 40 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+61
  • Evangelist
  • December 22, 2025

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

 


hansk
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • December 23, 2025

Thanks a lot geomancer 👌!