Question: I am using webview\_flutter for open URL
initialUrl: <https://demo.MyFatoorah.com> not working but
initialUrl: <https://MyFatoorah.com> working.
Please let me know what the problem in demo url.

Answer: 
If I look at your data it seems you could use the following:

```
import regex as re
lst=["S/O अशोक कुमार, ब्लॉक न.-4डी, S/O Ashok Kumar, Block no.-4D.",
      "स्ट्रीट-15, विभाग 5. सिविक सेंटर Street-15, sector -5, Civic Centre",
      "भिलाई, दुर्ग, भिलाई, छत्तीसगढ़, Bhilai, Durg. Bhilai, Chhattisgarh,",]
for i in lst:
    print(re.sub(r'^.*\p{Devanagari}.+?\b', '', i))

```

Prints:

```
S/O Ashok Kumar, Block no.-4D.
Street-15, sector -5, Civic Centre
Bhilai, Durg. Bhilai, Chhattisgarh,

```

---

See an online regex [demo](https://regex101.com/r/FPslwa/1)

* `^` - Start string anchor;
* `.*\p{Devanagari}` - 0+ (Greedy) characters upto the last Devanagari letter;
* `.+?\b` - 1+ (Lazy) characters upto the first word-boundary
If you mean that your characters may only be of standard english letters and your regex works for that and you only want to filter out the problematic ", , , ," values you could do something like this:

```
def format_output(current_output):
    results = []
    for row in current_output:
        # split on the ","
        sub_elements = row.split(",").
        # this will leave the empty ones as "" in the list which can be filtered
        filtered = list(filter(key=lambda x: len(x) > 0, sub_elements))
        # then join the elements togheter and append to the final results array
        results.append(",".join(filtered))

```