All Questions
Tagged with regular-expression pyqgis
4 questions
2
votes
1
answer
100
views
PyQGIS - Regex to Fill New Attribute Value
I have a gpkg with a column called name. I am trying to use PyQGIS to find any of the values in this column that starts with r and then contain e or x. I would then like to update a new column I've ...
10
votes
6
answers
16k
views
Creating label formatted like " 1,000' " from numeric field?
This question builds on a previous question I came across at gis.stackexchange:
How to easily edit attribute data using Regular Expressions?
Perhaps someone can point me in the right direction?
I ...
3
votes
1
answer
626
views
PyQGIS search and replace text using regex
This is based on Run regexp in PyQGIS script? and Search and Replace text in All Fields in QGIS 3
I am trying to modify the code to allow more complex replacements using regex but am unsure how to ...
3
votes
1
answer
230
views
Removing Esri text formatting tags in QGIS?
I have got a shapefile that contains ESRI formatting tags in the column I want to use for labeling the layer in QGIS. The following is an example for a label of one feature (3 Labels in different ...