Complex regular expression
- by Jose3d
Hello,
i will like to capture a substring part of a text choosing the number of characters but if any word is cut then get until de last blank.
As example if this is the text:
"This is an example of text lorem ipsum, etc..."
and i would like to get for instance 12 characters that are: "This is an e". In this case example is cutted, then i would like to get "This is an".
Its possible do this with Regular Expressions?
Thanks in advance.
Jose