Jump to content

StringRegExpReplace - What does this mean?


Recommended Posts

I have the following code that I received help on in the forums. I don't know what this piece of code means:

StringRegExpReplace($chars, "(?m:^)(?i)(<url.+/pos)(</url>)", "$1login.php?key=" & $CustomerID & "_" & $CustomerPin & "$2")

This is what it is pulling from:

<?xml version='1.0' encoding='UTF-8'?>
<ti:app xmlns:ti='http://ti.appcelerator.org'>
<!-- These values are edited/maintained by Titanium Developer -->
<id>mac.merchant.v2</id>
<name>MyAreaCard - Merchant V2</name>
<version>1.0</version>
<publisher>MyAreaCard</publisher>
<url>http://www.myareacard.com</url>
<icon>icon.png</icon>
<copyright>2010 by MyAreaCard</copyright>
<!-- Window Definition - these values can be edited -->
<window>
<id>initial</id>
<title>MyAreaCard - Merchant V2</title>
<url>http://www.myareacard.com/merchant/pos</url>                         <!-- This line -->
<width>620</width>
<max-width>3000</max-width>
<min-width>0</min-width>
<height>500</height>
<max-height>3000</max-height>
<min-height>0</min-height>
<fullscreen>false</fullscreen>
<resizable>true</resizable>
<chrome scrollbars="true">true</chrome>
<maximizable>true</maximizable>
<minimizable>true</minimizable>
<closeable>true</closeable>
</window>
</ti:app>

What does "(?m:^)(?i)(<url.+/pos)(</url>)", translate to in English? Where can I find the reference?

Get Scite to add a popup when you use a 3rd party UDF -> http://www.autoitscript.com/autoit3/scite/docs/SciTE4AutoIt3/user-calltip-manager.html

Link to comment
Share on other sites

Go back to the original thread. I explained it to you there.

To make it even easier here is the link to my reply

Edited by GEOSoft

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

A day after for you is probably after I'm asleep. I suspect we are half way around the world from each other.

George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...