Skip to main content

Hi team,
I have a use case where I need to extract the first 8 digits and the last 8 digits from a string field in IQ Bot. For example: 12345678222 / 000012345678 result should be 1234567812345678

 

 

I usually use simple scripts, but I came across this type of requirement for the first time. Can someone help me with what kind of Python script I can use inside IQ Bot to handle this scenario?

Thanks in advance!

Try this site for Python regular expression (regex) string extraction.

https://note.nkmk.me/en/python-str-extract/

I also use https://www.regexpal.com/ to help me figure out my regex.


Thank you Aaron i will try this


Reply