Replace . (period) with \n (new line)

General questions about using TextPad

Moderators: AmigoJack, helios, bbadmin, Bob Hansen, MudGuard

Post Reply
gcotterl
Posts: 238
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Replace . (period) with \n (new line)

Post by gcotterl »

How do I replace the '.' (period) character with the regular expression \n (new line)?
Last edited by AmigoJack on Tue Oct 10, 2023 8:37 am, edited 1 time in total.
Reason: more detailled subject; adding question mark
ben_josephs
Posts: 2456
Joined: Sun Mar 02, 2003 9:22 pm

Re: Replace

Post by ben_josephs »

The replacement expression isn't a regular expression and the sequence "\n" isn't (specifically) a regular expression

However, TextPad requires that you specify Regular expression when using escape sequences such as "\n", in either the search expression or the replacement expression. But the character "." is a regular expression (matching any character other than newline). The regular expression matching a dot is an escaped dot: "\.".

So what you need is
Find what: \.
Replace with: \n

[X] Regular expression
gcotterl
Posts: 238
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: Replace

Post by gcotterl »

Thanks BenJosephs

BTW: Why wasn't a notification that you replied to my question e-mailed to me?
User avatar
AmigoJack
Posts: 482
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Replace . (period) with \n (new line)

Post by AmigoJack »

This can have many reasons:
  1. Are you subscribed to this topic at all?
  2. When creating the topic/post, have you ticked the checkbox "Notify me when a reply is posted" in the "Options" tab? If you don't want to tick this everytime you can set its default in UCP > Board preferences > Edit posting defaults.
  3. Check in UCP > Profile > Edit account settings if it contains the email address where you expect notifications (or if it is surprisingly a different address).
  4. Is your email box even reachable? Send yourself an email from a different address.
  5. Is your email box full? When you never delete emails, then it runs out of space, just like a hard drive. Then incoming emails are rejected. Send yourself an email from a different address - when full, usually a bounce returns, informing you about the rejection.
  6. What and when was the last email you got from this board?
User avatar
AmigoJack
Posts: 482
Joined: Sun Oct 30, 2016 4:28 pm
Location: グリーン ヒル ゾーン
Contact:

Re: Replace . (period) with \n (new line)

Post by AmigoJack »

Have you found the culprit? A reply may help future readers (and us), too.
gcotterl
Posts: 238
Joined: Wed Mar 10, 2004 8:43 pm
Location: Riverside California USA

Re: Replace . (period) with \n (new line)

Post by gcotterl »

Thank you
Post Reply