Skip to main content
dublove
Legend
July 15, 2024
Question

I want to insert between words ~-, the location is between the third to the last second charac

  • July 15, 2024
  • 2 replies
  • 490 views

 

([a-z]{3})([a-z]{0})([a-z]{2})
([a-z]{3})([a-z]{1})([a-z]{2})
([a-z]{3})([a-z]{2})([a-z]{2})
([a-z]{3})([a-z]{3})([a-z]{2})
([a-z]{3})([a-z]{4})([a-z]{2})
([a-z]{3})([a-z]{5})([a-z]{2})
Replace:
$1$2~-$3

 

 

How can these regular beings merge into one.
They seem to be different from this

 

([a-z]{3})([a-z]{1,})([a-z]{2})

 

 

I want to insert between words ~-, the location is between the third to the last second charac

 

why Meteorological  book

 

The result is like this:

This topic has been closed for replies.

2 replies

Peter Kahrel
Community Expert
Community Expert
July 15, 2024

@dublove -- Do yourself a favour and learn about InDesign. You'll then be able to answer many of your questions yourself and you'll see that many of what you call unscientific bugs are in fact things you misunderstood or and simply good features. There are bugs here and there, of course, but when you know more about InDesign you'll be able to tell the difference between bug and misunderstood feature.

 

Some suggestions. There's a lot of material on Linda.com, all nicely organised in videos. You could also buy yourself two books: Classroom in a Book, and Real-World InDesign. These books are still in print. Classroom in a Book deals with the basics, Real-World InDesign is a reference book that provides a full description of ID. It has a good table of contents and an excellent index, so you'll always find what you're looking for.

 

The two books don't cover the latest InDesign versions (CC is the last version covered by Real-World InDesign) but that doesn't matter: hardly anything has changed. Most (if not all) of your queries here about pretty basic things, the two books are perfectly fine for your needs.

 

Peter

dublove
dubloveAuthor
Legend
July 15, 2024

@Peter Kahrel 

Thank you very much.

You are talking about a good idea.
I just want to write this regular,But in fact, this method is great and great.
Can it be achieved?

Peter Kahrel
Community Expert
Community Expert
July 15, 2024

You are talking about a good idea.

 

Good! Go and implement it: watch the videos, buy the books.

 

Can it be achieved?

 

Absolutely! 

Robert at ID-Tasker
Legend
July 15, 2024

Why do you need to do this?

 

dublove
dubloveAuthor
Legend
July 15, 2024

When Chinese and English mixed row, English set hyphen.

 

Robert at ID-Tasker
Legend
July 15, 2024

Then create CharStyle(s) with "no language": 

 

https://indesign.uservoice.com/forums/601021-adobe-indesign-feature-requests/suggestions/32293963-add-no-hyphenation-as-a-character-style

 

And apply it(them) to your English text.

 

Or add discretionary hyphen in front of the word(s).