Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
What is a regular expression compatible with OpenOffice Calc to limit each cell to 30 characters?
Example:
This is a sample text for my website.
Becomes:
This is a sample text for my w
If the text is in cell A1:
=LEFT(A1,30)
Documentation is at https://help.libreoffice.org/Calc/Text_Functions#LEFT.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 1 year ago.
Improve this question
I have the following data in my notepad++ file:
aa(40)
aa(50)
aa(4)
aa(8)
aa(40)
How do I search for it using regular expressions in notepad++?
Note : aa is always constant
In Notepad++:
Go to Search >> Find
Select Regular Expressions
Enter following regex: ^aa\(\d+\)
Find All in All Opened Documents
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
How do read two first letters and delete line?
This code remove all line where is GG
.*gg.*.*.*
ggang - delete
gangg -undelete
Tested in notepad++:
find: ^(gg.*)$
replace: (leave blank)
in:
ggang
gangg
out:
gangg
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I have the data as follows in txt:
136.40.226.97|ubnt|ubnt|
138.197.81.94|listd|54e172662|
138.68.254.243|wordpress|wordpress|
139.162.55.12|public|public|
139.60.58.136|system|OkwKcECs8qJP2Z|
I want to convert it to this:
|ubnt|ubnt|136.40.226.97
|listd|54e172662|138.197.81.94
|wordpress|wordpress|138.68.254.243
|public|public|139.162.55.12
|system|OkwKcECs8qJP2Z|139.60.58.136
In Find and Replace window Ctrl+H change Search Mode to Regular expression and set:
Find what: (\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})(.*)
Replace with: (\2)(\1)
This will find too groups: IP(1), rest of line(2), then Replace writes them in inverted order.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 years ago.
Improve this question
I would like to use regex in Java to substring text.
The string must be max 140 characters in all ( not counting new line/enter characters) and there might be max 4 lines
I found out how to substring 140 symbols: ^(.|\n|\r){0,140}
My question is how to add limitation for only 4 lines
and exclude new line/enter characters
Thanks for help!
This expression should do what you are looking for:
^([^\r\n]{0,140}(\r?\n|$)){4}
Try it here.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I need help to write a regex to exclude zip codes :
I need to exclude all following zip codes :
971xx
972xx
973xx
974xx
975xx
976xx
984xx
986xx
987xx
988xx
Can you help me writing the correct expression ?
Thanks
It's seem to me that you want to exclude french DOM-TOM zip code.
How about:
\b(?!97[1-6]|98[4678])\d{5}\b