Nicolas Bean
02/15/2022, 11:05 PMcreece
02/16/2022, 12:55 AMNicolas Bean
02/16/2022, 4:22 AMNicolas Bean
02/17/2022, 1:33 AMNicolas Bean
02/17/2022, 1:53 AMNicolas Bean
02/17/2022, 2:03 AMNicolas Bean
02/17/2022, 2:03 AMGerald Gillespie
02/17/2022, 2:35 AMNicolas Bean
02/17/2022, 2:47 PMNicolas Bean
02/17/2022, 2:47 PMNicolas Bean
02/17/2022, 2:47 PMGerald Gillespie
02/17/2022, 4:36 PMREPLACE
on all \n
in the description and then comparing.Nicolas Bean
02/18/2022, 3:17 PMGerald Gillespie
02/18/2022, 4:18 PMsuck at regexwhich is the same thing (to me) as saying i need to be better at regex cuz writing code and sucking at regex are insympatico… and this is a nice easy example to get your feet wet what @Nicolas Bean could do here (and maybe did) is use
REGEX_REPLACE
. something like this in a filter or where clause or join condition
REGEX_REPLACE( textareaField, '\W','') = REGEX_REPLACE(textField, '\W','')
whether using saved search or suiteQL you can still test it fairly easily using SuiteQL. something like this:
select str ,
REGEXP_REPLACE( source.str, patterns.removeallwhitespace, ''),
REGEXP_REPLACE( source.str, patterns.justspaces, '')
from
(select
'first line
second line
tab between
3spaces between
last line'
as str ) source join
(select '\W' as removeallwhitespace, ' ' justspaces ) patterns on 1=1
if you are using an external regex tester make sure it has an option for Oracle’s POSIX Support. ( If you are pulling out the value and doing in suitescript then you want ecmascript support comparable to the suitescript version you’re using)