Skip to main content
Question

Need help extracting first 8 and last 8 digits using Python script in IQ Bot


Forum|alt.badge.img+1

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!

2 replies

Aaron.Gleason
Automation Anywhere Team
Forum|alt.badge.img+10
  • Automation Anywhere Team
  • 569 replies
  • April 8, 2025

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.


Forum|alt.badge.img+1
  • Author
  • Cadet | Tier 2
  • 2 replies
  • April 8, 2025

Thank you Aaron i will try this


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings