Jump to content

regex help python


yemdoing

Recommended Posts

3 minutes ago, yemdoing said:

ippudu I have a text field with data like below samples, and angle brackets ni < to &lt;     > to &rt;  format ki change cheyyali . regex expression tell no 

 

Sample 1: Lasku Tapa <[email protected]>

Sample 2 Lasku Tapa <[email protected]>; Kompalo Kumpati <[email protected]>

 

Output 1: Lasku Tapa &lt;[email protected]&lt;

Output 1: Lasku Tapa &lt;[email protected]&gt;; Kompalo Kumpati &lt;[email protected]&gt;

Kapalika Kam kam

Link to comment
Share on other sites

  • yemdoing changed the title to regex help python
2 hours ago, meri_zindagi said:

re.sub 

adey use chesthunna for a field on data frame. But last lo malli repeat avthundi in reverorder.

re.sub(r"<[^>]*)",r,"&lt;\`&gt;",body_test)

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...