Menu

#4 Apply Fuction to regex

open
nobody
None
5
2012-12-06
2006-05-21
psouper
No

I think a nice addition to the toolset would be to pass
a regex result into a given function...

I [think i] need to perform a nested regex to best
catch some spam mail, e.g. those that contain the
following...

P R O Z ^ C
C / A L / S
M E R / D / A
A M B / E N

a letter followed by a space thne another letter or a
special char.

I could right a function that would catch these
instances but not a single regex. I would hope to
remove the white space then regex for words that do not
contain special chars.

unless anyone has a way of doing this with the current
script :)

I would see the 'execute function' working with a new
text field that if not blank would automatically pass
the result of the regex through the function returning
the result of that.

any thoughts on this?

thanks pSouper.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.