# Regular Expressions?

**URL:** <https://forum.kirupa.com/t/regular-expressions/247418>\
**Category:** Uncategorized\
**Created:** [December 22, 2007, 10:55pm UTC](https://forum.kirupa.com/t/regular-expressions/247418 "2007-12-22T22:55:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tezzutezzu](https://avatars.discourse-cdn.com/v4/letter/t/df705f/32.png) [@tezzutezzu](https://forum.kirupa.com/u/tezzutezzu)\
**Post date:** [December 22, 2007, 10:55pm UTC](https://forum.kirupa.com/t/regular-expressions/247418/1 "2007-12-22T22:55:58Z")

</div>

How do I match a newline character "  
" in a string?

I’m using TexField.getCharBounds to get the position of the last character in a line.  
When is space I just match it with an empty string (" ") but with the newline character I didn’t have any luck…
