I've got something like this (in Open Office Calc):
Streetname. Number
Streetname. Number a
etc. Now I want to delete everything in front of the number. So I need to do a search and replace I guess. ^.*?([0-9]) this one matches Streetname. Number .. but what should I put in the replace field? If I do the search and replace, it deletes everything within the datafield :(
Writer has a Find and Replace feature that automates the process of searching for text inside a document. In addition to finding and replacing words and phrases, you can: Use wildcards and regular expressions to fine-tune a search.
Click a character in the Character table to select it. The Delete button will remove all characters from the Characters field.
There are two types of cell references: relative and absolute. Relative and absolute references behave differently when copied and filled to other cells or when using the autofill feature of Calc. Relative references change when a formula is copied to another cell.
In Search for field, write the following regex: (.*?[:space:])([0-9]+)
And in Replace with, write: $2
That means that you search for:
Replace all that with $2
- the reference to the digits.
It will replace Streetname. Number 24
with 24
. Why did you put a
in your example?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With