Platforms to show: All Mac Windows Linux Cross-Platform

/Tools/RegEx/RegEx Multiline
Function:
Required plugins for this example: MBS Tools Plugin
You find this example project in your Plugins Download as a Xojo project file within the examples folder: /Tools/RegEx/RegEx Multiline
This example is the version from Sun, 17th Mar 2012.
Project "RegEx Multiline.xojo_binary_project"
FileTypes
Filetype text
End FileTypes
Class Window1 Inherits Window
Control EditField1 Inherits TextArea
ControlInstance EditField1 Inherits TextArea
End Control
Control PushButton1 Inherits PushButton
ControlInstance PushButton1 Inherits PushButton
EventHandler Sub Open() dim r as RegExMBS dim n,i,c as integer dim s as string s=ReplaceLineEndings(EditField1.text,EndOfLine.UNIX) r=new RegExMBS 'r.CompileOptionFirstLine=True r.CompileOptionMultiline=True if r.Compile("^....$") then n=0 do c=r.Execute(s,n) if c>0 then MsgBox r.Substring(0) n=r.Offset(1) end if loop until c=0 end if End EventHandler
End Control
End Class
MenuBar MenuBar1
MenuItem UntitledMenu1 = ""
MenuItem FileMenu = "&File"
MenuItem FileQuit = "Quit"
MenuItem EditMenu = "&Edit"
MenuItem EditUndo = "&Undo"
MenuItem UntitledMenu0 = "-"
MenuItem EditCut = "Cu&t"
MenuItem EditCopy = "&Copy"
MenuItem EditPaste = "&Paste"
MenuItem EditClear = "Clear"
End MenuBar
Class App Inherits Application
End Class
End Project

See also:

The items on this page are in the following plugins: MBS Tools Plugin.

Feedback: Report problem or ask question.

The biggest plugin in space...