Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
224 views

Add a space between dot or comma and a letter but with some exceptions

I need to do some grammar validation, for example add spaces after dots. Problem is that it shouldn't be done everywhere like in e.g. or www.example.co. or some more advanced exceptions like 999.77.SA....
alanmcknee's user avatar
0 votes
2 answers
785 views

Remove unfinished sentence at the end of a block of text

Here is a given text: The universe is so big that it’s impossible to comprehend. Our solar system is just a tiny speck in the vastness of space. And our galaxy, the Milky Way, is just one of billions ...
Benny's user avatar
  • 460
0 votes
1 answer
76 views

Cleaning up a string with punctuation mistakes and missing spaces

Hi, I have the following string: TheLion is walking(proudly) through theJungle,but he misses hisTeddy.1very sad day!It is VegeterianDay,too. How can we help him?Maybe withBambi&a good song! Or ...
tay's user avatar
  • 39
-2 votes
1 answer
2k views

Detect if a string contains any punctuation or accentued characters in PHP

I've been looking on internet without finding answers to my problem. I want that the user enter a login to create his account, but I need to check if there is any punctuation or accentued characters ...
aoilotr's user avatar