Welcome, Guest. Please
Login
or
Register
.
12/05/24 at 12:28:01
News:
If you outline, checkout
the new outlineZOOM extension
. Amazing stuff to instantly bring your ideas into focus.
The eccoMAGIC Forums
›
the SLANG EXTENSION and Guest Programming
›
Bug Reports for Slangmgh
(Moderator:
slangmgh
)
‹
Previous topic
|
Next topic
›
Pages: 1
RegEx, predefined classe \b (wordboundary) (Popularity: 4936 )
JohnSmith
EccoMagic Apprentice
I Love Ecco!
Posts: 6
RegEx, predefined classe \b (wordboundary)
11/19/09 at 06:41:36
Just have noticed that in regex expression (EccoExt v4.0.0.5) , predefined classe \b don't work, a \\b is required to make it work.
e.g. rule function match('checking RegEx','\bReg') returns empty string
to make it work use '\\b' instead of '\b', e.g. match('checking RegEx','\\bReg') returns 'Reg'.
Best Regards,
JS
Back to top
IP Logged
Admin
Administrator
I love Ecco!
Posts: 134
Re: RegEx, predefined classe \b (wordboundary)
Reply
#1
-
11/19/09 at 15:54:12
this is (at least in part) due to the regex engine itself.
1. can use \B in place of \b (which is as Regex technically backwards, \B should be NOT a boundary ... but then again...)
2. double slash "\\" is interpreted as single slash. (if you *want* double slash, eg., literal slash, must use four slashes, "\\\\"
(untested if issue 2 is local extension or regex engine issue)
Back to top
The Administrator.
IP Logged
Pages: 1
The eccoMAGIC Forums
›
the SLANG EXTENSION and Guest Programming
›
Bug Reports for Slangmgh
(Moderator:
slangmgh
)
‹
Previous topic
|
Next topic
›
Forum Jump:
-----------------------------
Notices
-----------------------------
- Welcome ! (About this Forum)
-----------------------------
Everything eccoMAGIC
-----------------------------
- eccoTools
- Issues, Comments, and Questions
- eccoMAGIC Bug Reports
- eccoMAGIC FEATURE REQUESTS
- Share Forms and Templates for MagicMerge, MagicView, etc.
-----------------------------
Ecco Tutorials, Tips and How-to Guides
-----------------------------
- How do I .....
- Beginner
- Advanced theory, practice and tips
- Ecco Templates, and Examples (no extensions required)
- Ecco with Linux / WINE
-----------------------------
the SLANG EXTENSION and Guest Programming
-----------------------------
- Slang Rules Scripts, Functions, Examples and HOW TO
- Slangmgh: Questions, Suggestions, Requests
=> Bug Reports for Slangmgh
-----------------------------
Ecco DDE & Add-On Programming tips, tricks, techniques (Learn & Share!)
-----------------------------
- DDE Interfacing with Ecco - How to...
-----------------------------
Group Projects in Progress
-----------------------------
- ECCO to PDA Port
-----------------------------
Forum Extras
-----------------------------
- Yahoo Forum Refuge
- Yahoo Forum Polls
- Ecco related Links
- Member Files !
-----------------------------
Comments, Suggestions, Problems & Discussion about the EM Forums
-----------------------------
- RE: The EM Forums
The eccoMAGIC Forums
» Powered by
YaBB 2.1
!
YaBB
© 2000-2005. All Rights Reserved.